datascript

Immutable database and Datalog query engine for Clojure, ClojureScript and JS
Aron 2021-03-25T08:23:28.015300Z

after 6 years, i want to come back to datascript, but I forgot almost everything

Aron 2021-03-25T08:23:56.015900Z

so I am struggling a bit, wasn't there a way to load maps into an empty db if there is a valid schema?

Aron 2021-03-25T08:24:11.016300Z

without having to add manually tempids

raspasov 2021-03-25T08:27:24.018400Z

@ashnur I only have a month or so of DataScript experience, but I guess it shouldn’t be a problem; Is every map an individual entity? I guess the schema and the “shape” of the maps determine whether you’ll end up with a desirable database structure.

Aron 2021-03-25T08:31:03.018700Z

no, just a single map

Aron 2021-03-25T08:31:05.018900Z

nested

Aron 2021-03-25T08:35:23.020Z

thanks @raspasov, you saying 'every map' reminded me that i need to put it in a vector 🤦

raspasov 2021-03-25T08:45:26.020100Z

🙂👍