- Notifications
You must be signed in to change notification settings - Fork102
-
Hello, there is a Rust SQL crate calledclorinde (a fork ofcornucopia) where you write queries like this: --: Author(age?)--! authors : AuthorSELECT name, ageFROM Authors;--! authors_from_country (country?) : AuthorSELECT name, ageFROM AuthorsWHEREAuthors.nationality= :country; And then clorinde, using the database schema, generates ergonomic Rust code that performs those queries. The queries are in a format that isalmost suitable for postgres-language-server, except that with ityou write parameters But also, the function signatures provided by clorinde can aid the postgres lsp: Maybe this is not appropriate for the postgres lsp, and as such it would be necessary to create a language server specific for clorinde - but the postgres lsp does 95% of the job already, and I think it's a good fit. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment
-
hey, thanks for the suggestion! unfortunately, we do not have control over the tokeniser and the parser. We are usinglibpg_query under the hood, and only support what they support. |
BetaWas this translation helpful?Give feedback.