You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using bookshelf->knex->pg and need to dig deeper into some of the SQL queries that are being generated. I would like to see the toString() outputs for every query that passes through knex, i.e. without any $1, $2 etc. Is there a way to enable this without a monkey patch, or a patch which can do this simply?
The text was updated successfully, but these errors were encountered:
Debugging is pretty high on the priority list of things that need work.
I'm currently working on retooling a lot of the internals of knex & bookshelf to make things a lot simpler with an emphasis on debugging and robust query generation. Should see some new things that make this available without temporary patches showing up in the next month or two,
The snippet @johanneslumpe shared should definitely help in the meantime
I'm using bookshelf->knex->pg and need to dig deeper into some of the SQL queries that are being generated. I would like to see the
toString()
outputs for every query that passes through knex, i.e. without any $1, $2 etc. Is there a way to enable this without a monkey patch, or a patch which can do this simply?The text was updated successfully, but these errors were encountered: