-
Notifications
You must be signed in to change notification settings - Fork 57
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
Add postgres fragment tagged literal #395
base: main
Are you sure you want to change the base?
Conversation
|
@jonasb is attempting to deploy a commit to the Curated Tests Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Orca Security Scan Summary
Status | Check | Issues by priority | |
---|---|---|---|
Passed | Secrets | 0 0 0 0 | View in Orca |
This PR is addressing similar issues as #126, but without allowing unsafe SQL. |
Missed that I forgot to run prettier |
The new fragment tagged literals can be used to create fragments that can be included in sql tagged literals.
When using a fragment`` more than once, the same values would be included multiple times in the resulting query. Now each uniqe value is only passed along once.
516c83a
to
79a201e
Compare
@vvo Could you please take a look again? |
Add a
fragment
tagged literal in addition to the existingsql
tagged literal.fragment
creates aQueryFragment
, that can be included in ansql
tagged literal.Example usage: