module Sequel::Postgres::Dataset::ArgumentMapper
PostgreSQL specific argument mapper used for mapping the named argument hash to a array with numbered arguments. Only used with the pg driver.
Protected Instance Methods
Source
# File lib/sequel/adapters/postgres.rb 719 def map_to_prepared_args(hash) 720 prepared_args.map{|k| hash[k.to_sym]} 721 end
An array of bound variable values for this query, in the correct order.
Private Instance Methods
Source
# File lib/sequel/adapters/postgres.rb 725 def prepared_arg(k) 726 y = k 727 if i = prepared_args.index(y) 728 i += 1 729 else 730 prepared_args << y 731 i = prepared_args.length 732 end 733 LiteralString.new("#{prepared_arg_placeholder}#{i}".freeze) 734 end