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 716 def map_to_prepared_args(hash) 717 prepared_args.map{|k| hash[k.to_sym]} 718 end
An array of bound variable values for this query, in the correct order.
Private Instance Methods
Source
# File lib/sequel/adapters/postgres.rb 722 def prepared_arg(k) 723 y = k 724 if i = prepared_args.index(y) 725 i += 1 726 else 727 prepared_args << y 728 i = prepared_args.length 729 end 730 LiteralString.new("#{prepared_arg_placeholder}#{i}") 731 end