brianc / node-sql

SQL generation for node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How would I build this query?

Arcath opened this issue · comments

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?

Doesn't .where accept string as argument?