Fork me on GitHub
#datomic
<
2017-08-10
>
adamfrey15:08:28

I'm using datomic free to query against some raw clojure collections, a la https://gist.github.com/stuarthalloway/2645453 and when I tried to use a pull expression in a find clause I get:

clojure.lang.LazySeq cannot be cast to datomic.Database
is that expected?

pesterhazy19:08:49

@adamfrey does it work if you turn wrap the sequence in vec?

adamfrey19:08:00

no I tried that, same error but with clojure.lang.PersistantVector or whatever

hcarvalhoaves20:08:05

@adamfrey it seems the pull API is defined in the Database interface. you can use (datomic.api/create-database "datomic:") and transact some datoms to query against

hcarvalhoaves21:08:30

can also use http://docs.datomic.com/clojure/#datomic.api/with to always start from an empty db too