datascript

Immutable database and Datalog query engine for Clojure, ClojureScript and JS
ncg 2019-05-23T09:27:06.205500Z

Datomic can take more than one database as input, and I'm pretty sure DataScript can as well, although I haven't tested it. Your queries would then look like: [:find ... :in $db1 $db2 :where [$db1 ?e :a ?v] [$db2 ?e :a2 ?v2]] Not sure if this fits your use case

urzds 2019-05-23T14:35:50.206Z

How does this work together with pull?

souenzzo 2019-05-23T15:36:52.207400Z

I think that it throws in datomic

ncg 2019-05-23T15:37:04.208Z

Pull does support specifying a source

ncg 2019-05-23T15:37:07.208300Z

But only one

ncg 2019-05-23T15:37:33.208900Z

So you'd have to [:find (pull $1 ...) (pull $2 ...) ...] at which point the ergonomics probably don't make sense any longer 😉

urzds 2019-05-23T15:51:50.209600Z

So I'll have to merge the objects later? And carry multiple :db/ids in case I need more data?