korma / Korma

Tasty SQL for Clojure.
http://sqlkorma.com
1.48k stars 222 forks source link

bit-mask operations #324

Open thirdreplicator opened 8 years ago

thirdreplicator commented 8 years ago

In MySQL you can select fields by bitwise and/or operators. For example,

select * from products where (accessories & 1025) != 0;

Is it possible to do something like this in Korma?

immoh commented 8 years ago

You can use raw for the bitwise operation. Please see discussion in #310.