googleapis / nodejs-bigquery

Node.js client for Google Cloud BigQuery: A fast, economical and fully-managed enterprise data warehouse for large-scale data analytics.
https://cloud.google.com/bigquery/
Apache License 2.0
468 stars 211 forks source link

Use Template Strings for GoogleSQL raw queries #1342

Open MatthewAry opened 8 months ago

MatthewAry commented 8 months ago

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:

Thank you.

alvarowolfx commented 8 months ago

@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)