Class Index [+]

Quicksearch

Sequel::Postgres::AutoParameterize::DatabaseMethods

Public Class Methods

extended(db) click to toggle source

Extend the database’s datasets with the necessary code.

    # File lib/sequel/extensions/pg_auto_parameterize.rb, line 89
89:         def self.extended(db)
90:           db.extend_datasets(DatasetMethods)
91:         end

Public Instance Methods

execute(sql, opts={}) click to toggle source

If the sql string has an embedded parameter array, extract the arguments from that.

     # File lib/sequel/extensions/pg_auto_parameterize.rb, line 95
 95:         def execute(sql, opts={})
 96:           if sql.is_a?(StringWithArray) && (args = sql.args)
 97:             opts = opts.merge(:arguments=>args)
 98:           end
 99:           super
100:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.