Module: Sequel::Extralite::Dataset::ArgumentMapper

Includes:
Dataset::ArgumentMapper
Defined in:
lib/sequel/adapters/extralite.rb

Instance Method Summary collapse

Instance Method Details

#map_to_prepared_args(hash) ⇒ Object (protected)

Return a hash with the same values as the given hash, but with the keys converted to strings.



322
323
324
325
326
# File 'lib/sequel/adapters/extralite.rb', line 322

def map_to_prepared_args(hash)
  args = {}
  hash.each{|k,v| args[k.to_s.gsub('.', '__')] = v}
  args
end