datascript

Immutable database and Datalog query engine for Clojure, ClojureScript and JS
bartuka 2020-02-20T01:04:41.062Z

hi, I would like to know if this behavior is expected:

(ds/conn-from-datoms [#datascript/Datom [1 :maker/name "BMW" 536870913 true]
                      #datascript/Datom [1 :maker/name "BMW" 536870914 false]])

#datascript/DB{:datoms [[1 :maker/name BMW 536870913] [1 :maker/name BMW 536870914]]}

bartuka 2020-02-20T01:06:22.063300Z

i got into this scenario because I was loading the datoms from a persistent data structure. When I perform the same set of operations in memory, the database has no datoms for these fact

bartuka 2020-02-20T01:06:46.063900Z

I think I will have to handle this situations when loading the datoms from past databases

ts1503 2020-02-20T07:43:43.064500Z

Hi @cjsauer. Thanks, will give it a try

richiardiandrea 2020-02-20T17:53:42.066Z

@iagwanderson what is the schema? that dictates which datoms are going to be built and how