Method: Sequel::Postgres::HStoreOp#merge

Defined in:
lib/sequel/extensions/pg_hstore_ops.rb

#merge(other) ⇒ Object Also known as: concat

Merge a given hstore into the receiver:

hstore_op.merge(:a) # (hstore || a)
[View source]

219
220
221
# File 'lib/sequel/extensions/pg_hstore_ops.rb', line 219

def merge(other)
  HStoreOp.new(Sequel::SQL::PlaceholderLiteralString.new(CONCAT, [self, wrap_input_hash(other)]))
end