module Sequel::Oracle::Dataset::ArgumentMapper
Oracle
already supports named bind arguments, so use directly.
Protected Instance Methods
map_to_prepared_args(bind_vars)
click to toggle source
Return a hash with the same values as the given hash, but with the keys converted to strings.
# File lib/sequel/adapters/oracle.rb 336 def map_to_prepared_args(bind_vars) 337 prepared_args.map{|v, t| [bind_vars[v], t]} 338 end
Private Instance Methods
prepared_arg(k)
click to toggle source
Oracle
uses a : before the name of the argument for named arguments.
# File lib/sequel/adapters/oracle.rb 344 def prepared_arg(k) 345 y, type = k.to_s.split("__", 2) 346 prepared_args << [y.to_sym, type] 347 i = prepared_args.length 348 LiteralString.new(":#{i}") 349 end
prepared_arg?(k)
click to toggle source
Always assume a prepared argument.
# File lib/sequel/adapters/oracle.rb 352 def prepared_arg?(k) 353 true 354 end