Skip to content

How would I build this query? #380

Open

Description

@Arcath

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?

Activity

  1. desoares1975 commented on Dec 22, 2017

    @desoares1975

    Doesn't .where accept string as argument?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions