Skip to content
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

Use Template Strings for GoogleSQL raw queries #1342

Open
MatthewAry opened this issue Mar 14, 2024 · 1 comment
Open

Use Template Strings for GoogleSQL raw queries #1342

MatthewAry opened this issue Mar 14, 2024 · 1 comment
Assignees
Labels
api: bigquery Issues related to the googleapis/nodejs-bigquery API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@MatthewAry
Copy link

Is your feature request related to a problem? Please describe.
DX can be improved by adding support for writing raw GoogleSQL queries using a template literal tag. This is a convenient way to write statements while mitigating risks of sql injection attacks.

Describe the solution you'd like
For details on what this is please see:

Describe alternatives you've considered
I've considered using a third party solution for a different flavor of SQL, but there is a risk that it can have unexpected or undesirable results.

Thank you.

@MatthewAry MatthewAry added priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Mar 14, 2024
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/nodejs-bigquery API. label Mar 14, 2024
@alvarowolfx alvarowolfx self-assigned this Mar 14, 2024
@alvarowolfx
Copy link
Contributor

@MatthewAry thanks for the suggestion, that's a really nice feature to add to our library. I'll take a look on adding that after some other improvements that I'm working right now (mainly speeding up query execution with #1337)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/nodejs-bigquery API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

2 participants