Created
October 29, 2019 17:26
-
-
Save groovecoder/253838cb3ac11e113c9d3f8b81f027a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (AppConstants.NODE_ENV === "dev") { | |
knex.on("query", async (queryData) => { | |
debugger; | |
console.log(queryData); | |
}); | |
knex.on("query-response", async (response, obj, builder) => { | |
debugger; | |
const explainSql = `EXPLAIN VERBOSE ${builder}`; | |
const res = await knex.raw(explainSql); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment