module Sequel::SQLite::Dataset::ArgumentMapper
Protected Instance Methods
Source
# File lib/sequel/adapters/sqlite.rb 384 def map_to_prepared_args(hash) 385 args = {} 386 hash.each{|k,v| args[k.to_s.gsub('.', '__')] = v} 387 args 388 end
Return a hash with the same values as the given hash, but with the keys converted to strings.
Private Instance Methods
Source
# File lib/sequel/adapters/sqlite.rb 394 def prepared_arg(k) 395 LiteralString.new("#{prepared_arg_placeholder}#{k.to_s.gsub('.', '__')}".freeze) 396 end
SQLite uses a : before the name of the argument for named arguments.