joshtemple / harlequin-bigquery

A BigQuery adapter for Harlequin, a SQL IDE for the terminal.
MIT License
8 stars 2 forks source link

Support validate_sql #6

Open joshtemple opened 11 months ago

joshtemple commented 11 months ago

validate_sql (from the Harlequin docs)

validate_sql(query) should very quickly parse the passed query: it is used to validate the selected text in Harlequin and determine whether the selection or entire query should be executed. If it is implemented, Harlequin will not attempt to execute the selected text if it is not a valid query; otherwise, Harlequin will always execute the selected text.

joshtemple commented 11 months ago

We should be able to submit a query with the dryRun flag set to validate the SQL.