-
I'm using I was surprised there's no such thing like ...
qb := client.MyData.Query().Where(...).Order(...).Limit(...)
fmt.Sprintf("About to execute query: %s", qb.QueryString())
res, err := qb.All(ctx)
... am I missing something obvious? |
Beta Was this translation helpful? Give feedback.
Answered by
a8m
Jul 6, 2021
Replies: 2 comments
-
Hey @ppenguin!
Yes. Prefix your queries with client.Debug().User.Query().All(ctx) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
a8m
-
Another way is to use log level to control the print sql query `
` |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @ppenguin!
Yes. Prefix your queries with
Debug()
. For example: