Simple query builder macros? #1291
johanhelsing
started this conversation in
Ideas
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.
-
I was a bit annoyed with maintaining insert queries, that is:
There are three things to keep track of:
And it gets a lot worse as the number of arguments grow.
I made a small poc that lets you instead write:
...which saves me a lot of typing.
The readme for sqlx says sqlx is not supposed to be a query builder, so not sure if it's suitable for addition or not?
In any case I made a separate repo for it that I use for my own projects and in case somebody else wants to use it or take it further: https://github.com/johanhelsing/sqlx-convenience
Beta Was this translation helpful? Give feedback.
All reactions