Replies: 1 comment 2 replies
-
Hi @aep - there are various levels at which CUE could be used when it comes to database schemas. This is not an area where we are actively working, but the design of the CUE the language (both current and planned features) is very much done with this kind of use in mind. Noting also @tvandinther wrote something on this recently: https://mioi.io/blog/posts/cue-relational-data-modelling/ So to probe a bit more on what you were thinking here:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
so i'm working on a document database. currently i'm using jsonschema which feels familiar but has terrible performance.
its validation is also way too constrained
instead i'm now looking at cue and kcl. kcl seems to be a natural fit because you can store the compiled schema into the db.
with cue the best i could replace "schemas" with is by having a not yet concrete value exported as AST. This seems extremely inefficient? I'd have to load the AST every time someone puts a concrete document into the db.
Maybe i'm not thinking about cue right yet. maybe someone has a super genious idea how to make this fit, or maybe abusing cue like this just isnt a good idea
Beta Was this translation helpful? Give feedback.
All reactions