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)


328
329
330
# File 'lib/sequel/extensions/pg_json_ops.rb', line 328

def contains(other)
  bool_op(CONTAINS, wrap_input_jsonb(other))
end