Module: Sequel::Postgres::HStore::DatabaseMethods
- Defined in:
- lib/sequel/extensions/pg_hstore.rb
Class Method Summary collapse
-
.extended(db) ⇒ Object
Reset the conversion procs if using the native postgres adapter.
Instance Method Summary collapse
-
#bound_variable_arg(arg, conn) ⇒ Object
Handle hstores in bound variables.
Class Method Details
.extended(db) ⇒ Object
Reset the conversion procs if using the native postgres adapter.
132 133 134 |
# File 'lib/sequel/extensions/pg_hstore.rb', line 132 def self.extended(db) db.reset_conversion_procs if db.respond_to?(:reset_conversion_procs) end |
Instance Method Details
#bound_variable_arg(arg, conn) ⇒ Object
Handle hstores in bound variables
137 138 139 140 141 142 143 144 145 146 |
# File 'lib/sequel/extensions/pg_hstore.rb', line 137 def bound_variable_arg(arg, conn) case arg when HStore arg.unquoted_literal when Hash HStore.new(arg).unquoted_literal else super end end |