Replies: 1 comment 3 replies
-
You can do either: querySQL, args, err := models.Events.Query().Build(ctx)
// OR
querySQL, args, err := bob.Build(ctx, model.Events.Query()) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In my project i use sql function which takes sql query, explains it and returns plan rows for this query. I use it for approximate rows counting in my large tables.
It looks like this:
To use this function with bob i need builded sql query with binded params. Is there a way how to get this from a ViewQuery?
Beta Was this translation helpful? Give feedback.
All reactions