Class/Module Index [+]

Quicksearch

Sequel::Postgres::HStore::DatabaseMethods

Public Class Methods

extended(db) click to toggle source
# File lib/sequel/extensions/pg_hstore.rb, line 139
def self.extended(db)
  db.instance_eval do
    add_named_conversion_procs(conversion_procs, :hstore=>PG_NAMED_TYPES[:hstore])
    @schema_type_classes[:hstore] = HStore
  end
end

Public Instance Methods

bound_variable_arg(arg, conn) click to toggle source

Handle hstores in bound variables

# File lib/sequel/extensions/pg_hstore.rb, line 147
def bound_variable_arg(arg, conn)
  case arg
  when HStore
    arg.unquoted_literal
  when Hash
    HStore.new(arg).unquoted_literal
  else
    super
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.