Method: Sequel::Postgres::JSONBOp#contains
- Defined in:
- lib/sequel/extensions/pg_json_ops.rb
#contains(other) ⇒ Object
Check if the receiver contains all entries in the other jsonb:
jsonb_op.contains(:h) # (jsonb @> h)
642 643 644 |
# File 'lib/sequel/extensions/pg_json_ops.rb', line 642 def contains(other) bool_op(CONTAINS, wrap_input_jsonb(other)) end |