Method: Sequel::Postgres::HStoreOp#-
- Defined in:
- lib/sequel/extensions/pg_hstore_ops.rb
#-(other) ⇒ Object
Delete entries from an hstore using the subtraction operator:
hstore_op - 'a' # (hstore - 'a')
117 118 119 120 121 122 123 124 |
# File 'lib/sequel/extensions/pg_hstore_ops.rb', line 117 def -(other) other = if other.is_a?(String) && !other.is_a?(Sequel::LiteralString) Sequel.cast_string(other) else wrap_input_array(wrap_input_hash(other)) end HStoreOp.new(super) end |