Method: Sequel::Postgres::JSONBOp#contained_by
- Defined in:
- lib/sequel/extensions/pg_json_ops.rb
#contained_by(other) ⇒ Object
Check if the other jsonb contains all entries in the receiver:
jsonb_op.contained_by(:h) # (jsonb <@ h)
335 336 337 |
# File 'lib/sequel/extensions/pg_json_ops.rb', line 335 def contained_by(other) bool_op(CONTAINED_BY, wrap_input_jsonb(other)) end |