Fork me on GitHub
#datascript
<
2016-08-05
>
len16:08:15

I have the following query that works in datomic

len16:08:37

(d/q '[:find [(pull ?e [*]) ...]
         :in $ ?prefix
         :where
         [?e :db/ident ?attr]
         [(namespace ?attr) ?ns]
         [(= ?ns ?prefix)]
         ]
       db prefix)

len16:08:02

but it fails with datascript saying "Unknown function 'clojure.core.namespace in [(clojure.core.namespace ?attr) ?ns]"

len16:08:19

can I use the namespace function like that ?