Method: Sequel::Postgres::HStoreOp#defined
- Defined in:
- lib/sequel/extensions/pg_hstore_ops.rb
#defined(key) ⇒ Object
Check if the receiver contains a non-NULL value for the given key:
hstore_op.defined('a') # defined(hstore, 'a')
174 175 176 |
# File 'lib/sequel/extensions/pg_hstore_ops.rb', line 174 def defined(key) Sequel::SQL::BooleanExpression.new(:NOOP, function(:defined, key)) end |