Class Index [+]

Quicksearch

Dataset::ArgumentMapper

SQLite already supports named bind arguments, so use directly.

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, line 275
275:         def map_to_prepared_args(hash)
276:           args = {}
277:           hash.each{|k,v| args[k.to_s.gsub('.', '__')] = v}
278:           args
279:         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, line 285
285:         def prepared_arg(k)
286:           LiteralString.new("#{prepared_arg_placeholder}#{k.to_s.gsub('.', '__')}")
287:         end
prepared_arg?(k) click to toggle source

Always assume a prepared argument.

     # File lib/sequel/adapters/sqlite.rb, line 290
290:         def prepared_arg?(k)
291:           true
292:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.