brianc / node-sql

SQL generation for node.js
MIT License
1.05k stars 191 forks source link

How would I build this query? #380

Open Arcath opened 6 years ago

Arcath commented 6 years ago

I have a postgres query that uses bit masking. I can't see how to build it with node-sql.

SELECT * FROM users WHERE ("permissionScheme"::bit(5) & B'10000') = B'10000'

How would I create this with node-sql?

desoares1975 commented 6 years ago

Doesn't .where accept string as argument?