runreveal / pql

Pipelined Query Language
https://pql.dev
Apache License 2.0
647 stars 25 forks source link

Question on Validation #46

Closed sundarv85 closed 8 months ago

sundarv85 commented 8 months ago

How can we validate the generated query. For e.g.

Allowed Databases, Allowed Tables, Allowed Fields specific to each Table, on Where conditions checking for certain conditions, on limits checking the min and max limit value that the user can pass etc

If the user will be writing the query in PQL format. We want to validate for valid tables, but also limit the way the user queries instead of allowing them to query everything.

abraithwaite commented 8 months ago

We'll be exploring database-specific validations when we look at autocompletion and adding an LSP Server. Follow #39 for updates on that front. :-)