Log query
nehalist opened this issue · 3 comments
nehalist commented
Tried to pass
options: { logging: true }
to the connection, but I still don't get the executed query. How to show / log executed query?
tonivj5 commented
You can get log setting options.query.logging: console.log
, like this connection:
mysql: {
user: 'user',
password: 'pass',
database: 'db',
dialect: 'mysql',
options: {
query: {
raw: false,
logging: console.log
},
dialect: 'mysql',
host: 'localhost',
port: 3306,
logging: console.log,
}
}
nehalist commented
Yep.