datascript

Immutable database and Datalog query engine for Clojure, ClojureScript and JS
lilactown 2020-03-04T21:18:39.013200Z

looking for info on a sort of nuanced datalog question… say I am using datascript (or some other datalog engine) as a cache of some data from several difference sources. Something akin to: • :person/name, :person/age, :person/id all come from one data source • :person/order-history comes from another data source • :order/id, :order/contents, and :order/owner-id all come from yet another data source etc. is it possible to always know which data sources a particular query depends on by simply inspecting the query as data?

lilactown 2020-03-04T21:25:39.014300Z

put another way, is it possible to construct a datalog query where an attribute that it depends on is ambiguous?