Skip to content

Is it possible to add custom operator in where method? #75

Description

@un1t

Hi!

I use Postgres with jsonb field. I would like to write come expressions like this:

select * from table where data::jsonb @> '{"1" : [8]}';

I did try to put sting as argument in where method.

> Query().from_table('t').where("""data::jsonb @> '{"1" : [8]}""").get_sql()
'SELECT t.* FROM t WHERE ()'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions