Replies: 1 comment 1 reply
-
For 1., there is There is a way to do true upsert in a single transaction: you can use either query chaining https://docs.cozodb.org/en/latest/stored.html#chaining-queries (specifically, For 2., no currently there is no other way. But getting metadata should be extremely fast. Is there any reason that filtering within your host language is infeasible? For 3., unfortunately no, since Cozo is pretty new. But there are more material on the web if you search for Datalog (still not a lot, and you will need to translate the syntax). |
Beta Was this translation helpful? Give feedback.
-
Sorry if some of these are beginner question, I just started learning.
:create
the same relation more than once and it failed, I'm wondering if there's a common pattern (I suppose that works with transactions) to upsert a fixed relation?Would appreciate an example of how to also input data at the same time as upserting.
I saw that there's
::relations
and::columns <REL>
- but if the database grows I want a way to get existing relations selectively, are there other ways of reflecting on what's in the database?Also, are there any other tutorials/materials other than the docs page? or examples of projects using cozo? I'm more interested in the graph-db aspects, the airports example doesn't show a lot of arbitrary connections you might see in a graph-db. I'm new to datalog too so having just one complex example is limiting my ability to learn :)
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions