We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I'm trying to get executed sql query after fetched the result, so is it possible to get query statement.
E.g.
Model.findAll(...).then(function(data) {
// need to get executed sql query "select id,name from model where id = 12";
});
Any help please.
Thanks,
The text was updated successfully, but these errors were encountered:
findAll({ ..., logging: function (sql) ... })
Closing this issue, since it is neither a bug report nor a feature request.
For general sequelize questions, please use Slack, StackOverflow or Google groups.
Sorry, something went wrong.
Thanks janmeier,
But i need the query inside then directive, so is it possible to pass it inside .then callback function ?
Have the logging function store it in a variable variable
var sql; findAll({ ..., logging: function (sql) ... }).then(function () { // do something with sql });
No branches or pull requests
Hi,
I'm trying to get executed sql query after fetched the result, so is it possible to get query statement.
E.g.
Model.findAll(...).then(function(data)
{
// need to get executed sql query "select id,name from model where id = 12";
});
Any help please.
Thanks,
The text was updated successfully, but these errors were encountered: