gocraft / dbr

Additions to Go's database/sql for super fast performance and convenience.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How get full SQL statement before Exec or Load?

vasiliyaltunin opened this issue · comments

Is there a way to get builded sql query before it run? I need it to debug purposes.

Interpolation. It is also used internally before executing

Interpolation. It is also used internally before executing

Can you post example code?

This is one example in test: https://github.com/gocraft/dbr/blob/master/interpolate_test.go#L116.
In dbr, all statements and builders can be interpolated this way.

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.