dwhjames/datomisca

Supplying a database argument to a query without an :in clause

Closed this issue · 2 comments

If one builds the following query,

[
  :find ?e
  :where
    [?e :ns/attr]
]

then

q(query, database)

fails. The query is interpreted as a no-args query and no database value can be supplied.

I known this one :D

I guess the work around of always having

[
  :find ?e
  :in $
  :where
    [?e :ns/attr]
]

isn’t so bad