node.jssails.jswaterline

How to show queries in console log using sails?


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.


Solution

  • Unfortunately this isn't possible with Sails at this time, although the feature has been requested. Your best bet is to inspect the log file provided by your database:

    Postgres: How to log PostgreSQL queries?

    MySQL: Log all queries in mysql

    MongoDB: MongoDB logging all queries