module Sequel::SQLite::Dataset::ArgumentMapper

Protected Instance Methods

map_to_prepared_args(hash) 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/sqlite.rb
296 def map_to_prepared_args(hash)
297   args = {}
298   hash.each{|k,v| args[k.to_s.gsub('.', '__')] = v}
299   args
300 end

Private Instance Methods

prepared_arg(k) click to toggle source

SQLite uses a : before the name of the argument for named arguments.

    # File lib/sequel/adapters/sqlite.rb
306 def prepared_arg(k)
307   LiteralString.new("#{prepared_arg_placeholder}#{k.to_s.gsub('.', '__')}")
308 end
prepared_arg?(k) click to toggle source

Always assume a prepared argument.

    # File lib/sequel/adapters/sqlite.rb
311 def prepared_arg?(k)
312   true
313 end