Extend the database's datasets with the necessary code.
# File lib/sequel/extensions/pg_auto_parameterize.rb, line 93 def self.extended(db) Sequel::Deprecation.deprecate('The pg_auto_parameterize extension', 'Please stop loading it') unless defined?(SEQUEL_EXTENSIONS_NO_DEPRECATION_WARNING) db.extend_datasets(DatasetMethods) end
If the sql string has an embedded parameter array, extract the arguments from that.
# File lib/sequel/extensions/pg_auto_parameterize.rb, line 100 def execute(sql, opts={}) if sql.is_a?(StringWithArray) && (args = sql.args) opts = opts.merge(:arguments=>args) end super end
Generated with the Darkfish Rdoc Generator 2.