Method: Sequel::Postgres::JSONBOp#has_key?
- Defined in:
- lib/sequel/extensions/pg_json_ops.rb
#has_key?(key) ⇒ Boolean Also known as: include?
Check if the receiver contains the given key:
jsonb_op.has_key?('a') # (jsonb ? 'a')
349 350 351 |
# File 'lib/sequel/extensions/pg_json_ops.rb', line 349 def has_key?(key) bool_op(HAS_KEY, key) end |