Is there any way I can use the sqlx::query macro for compile safety for multiple statements? #2516
Unanswered
Preston-Harrison
asked this question in
Q&A
Replies: 0 comments
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.
-
I love using the
sqlx::query!
macro, however, there are some parts of my code that require multiple queries to be executed in quick succession. Ideally, I would batch them into one statement and send it to my SQL server to reduce the need for multiple round trips to and from the server, however, I don't know how to do this with query macros. Can someone point me in the right direction as to whether this is possible, or if there is a better way other than just sending them in succession?Beta Was this translation helpful? Give feedback.
All reactions