How to show queries in console log using sails?

demonodojo picture demonodojo · Mar 14, 2014 · Viewed 9.7k times · Source

I am starting a project with sails and mysql, and I do'nt know how configurate it to show the queries executed in the console.

Answer

user1278519 picture user1278519 · Dec 20, 2014

The mysql adapter has a debug variable LOG_QUERIES to send all queries to the console.

LOG_QUERIES=true node myFile.js