Class Index [+]

Quicksearch

Sequel::TinyTDS::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/tinytds.rb, line 158
158:         def map_to_prepared_args(hash)
159:           args = {}
160:           hash.each{|k,v| args[k.to_s.gsub('.', '__')] = v}
161:           args
162:         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/tinytds.rb, line 168
168:         def prepared_arg(k)
169:           LiteralString.new("@#{k.to_s.gsub('.', '__')}")
170:         end
prepared_arg?(k) click to toggle source

Always assume a prepared argument.

     # File lib/sequel/adapters/tinytds.rb, line 173
173:         def prepared_arg?(k)
174:           true
175:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.