Fork me on GitHub
#datalog
<
2020-08-25
>
mauricio.szabo04:08:57

I really like the bitemporality of crux, but like the way datomic is organized (in datoms). Why isn't is a database that could have both? 😄

👍 12
refset11:08:18

we are unlikely to ship anything in the near future...but it's definitely already possible to build your own datoms implementation 🙂 https://gist.github.com/refset/a00be06443bc03ccc84a2874af3cdb8a (sorry I don't have a directly usable sample to offer, but I'd be happy to provide more context if there's interest)

👍 3
marciol17:08:29

yes, I have the same feeling as expressed by @U3Y18N0UC. I know of the set of trade-offs choose by the Crux team

mauricio.szabo17:08:39

@U899JBRPF can you elaborate on that? I'm looking at your gist right now, but I'm not sure how to use these functions. I did try to transact [[:crux.tx/fn :add ...lots-of-combinations-here..]] but nothing worked 😞

mauricio.szabo17:08:07

Wait, nevermind: found out my error. It's [[:crux.tx/fn :add :attribute "Value"]]. I was also missing a schema, so changing attributes were becoming sets 😄

refset17:08:01

oh! right, yeah that'll do it 😁

refset17:08:42

this was my schema I was using whilst testing that;

{:crux.db/id :schema
    :some/att {:crux.db/cardinality :crux.db.cardinality/one}
    :ref/att {:crux.db/cardinality :crux.db.cardinality/one
              :crux.db/value-type :crux.db.type/ref}}