3 ms·
I will add an example to the README with an INSERT statement to make it more obvious what SQLPage can do. For the header, I don't think that would be necessary
by lovasoa 3y ago
I will add an example to the README with an INSERT statement to make it more obvious what SQLPage can do.
For the header, I don't think that would be necessary. SQLPage would route queries to .sql pages to the SQL parser and queries to .prql files to the prql parser.
If you want to play around with integrating prql in sqlpage, you can have a look at https://github.com/lovasoa/SQLpage/blob/main/src/webserver/database/sql.rs https://github.com/lovasoa/SQLpage/blob/main/src/webserver/d...
This is a short self-contained rust file, and think you would not need to change anything more to interface with a prql parser. If you want to give it a stab, feel free to make a POC and get in touch :)