-
-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
formatf for positional parameter convenience? #495
Comments
Since |
Signed-off-by: Sean Corfield <[email protected]>
The "two more possible solutions" use Although the downside is that they are |
I'm beginning to settle on I need to add tests and document |
If you're using the quoted symbol style queries, it is a nuisance to have to break out of that whenever you want a non-literal value in the query.
It would be nice if there was a quoted symbol style version of something like this:
Proposal:
It would be purely a convenience wrapper to allow quoted symbol style queries with parameters.
Behind the scenes, it would run
(zipmap (map (comp keyword str inc) (range)) args)
to create the:params
option and then invokesql/format
.Open question:
The text was updated successfully, but these errors were encountered: