Method: Sequel::SQL::Builders#hstore
- Defined in:
- lib/sequel/extensions/pg_hstore.rb
#hstore(v) ⇒ Object
Return a Postgres::HStore proxy for the given hash.
313 314 315 316 317 318 319 320 321 322 323 |
# File 'lib/sequel/extensions/pg_hstore.rb', line 313 def hstore(v) case v when Postgres::HStore v when Hash Postgres::HStore.new(v) else # May not be defined unless the pg_hstore_ops extension is used hstore_op(v) end end |