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