datascript

Immutable database and Datalog query engine for Clojure, ClojureScript and JS
Casey 2021-02-26T13:18:56.029800Z

If it's ok, Id like to cross post this question from #datahike to here seeing as there's almost 3x as many folks in here. https://clojurians.slack.com/archives/CB7GJAN0L/p1614271282028900

oly 2021-02-26T13:59:31.031400Z

no expert but obviously your calling ?owns as a functions but in the above code its not defined does the function exists its also not passed in as param in the :in clause

Casey 2021-02-26T16:00:29.032200Z

owns? isn't a function, it's https://docs.datomic.com/on-prem/query/query.html#rules and is defined in the rules var.

oly 2021-02-26T16:38:04.033700Z

the bracket (means fn normally and page 56 in the presentation they define a defn called owns? but I dont know anything about rules so i could be wrong

oly 2021-02-26T16:38:17.034Z

not much info out there on rules 😞