Closed AlecTroemel closed 4 years ago
is it possible to do WHERE ... OR ... queries in db/from? Something like this
WHERE ... OR ...
db/from
(db/from :tablename :where {:a a} :or {:b b})
(the above doesn't work as far as i can tell)
It's not quite what you were asking but you can do this:
(db/from :table :where ["a = ? or b = ?" a b])
nice! That does what I need :+1: thanks for the awesome project!
is it possible to do
WHERE ... OR ...
queries indb/from
? Something like this(the above doesn't work as far as i can tell)