Data structure for sending generated queries. #165
CrowdHailer
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am looking to make a query builder for cozo. Ideally it should a type safe builder API, where the return type is a list of tuples that match the query that produces them.
My language for this project is Gleam, however a project with a similar goal might be https://github.com/launchbadge/sqlx.
Would it be possible to extend cozo, so that I could send queries in a machine friendly encoding rather than having to build a valid cozo script string. Something like a JSON encoding of the program AST would work.
I think this could make it easier to build much closer integration with a variety of languages.
Beta Was this translation helpful? Give feedback.
All reactions