Skip to content

How can I get raw query from builded one? #1173

Answered by stephenafamo
qerdcv asked this question in Q&A
Discussion options

You must be logged in to vote

If you set boil.DebugMode = true it will log the query and args

boil.DebugMode = true
users, err := models.Users(
   // ....
).All(ctx, db)
boil.DebugMode = false

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@qerdcv
Comment options

Answer selected by qerdcv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants