# File lib/sequel/extensions/pg_hstore.rb, line 142 def self.extended(db) db.instance_eval do add_named_conversion_proc(:hstore, &HStore.method(:parse)) @schema_type_classes[:hstore] = HStore end end
Handle hstores in bound variables
# File lib/sequel/extensions/pg_hstore.rb, line 150 def bound_variable_arg(arg, conn) case arg when HStore arg.unquoted_literal when Hash HStore.new(arg).unquoted_literal else super end end