Class Index [+]

Quicksearch

Sequel::MySQL::DatasetMethods::PreparedStatementMethods

Methods for MySQL prepared statements using the native driver.

Public Instance Methods

call(*) click to toggle source

Raise a more obvious error if you attempt to call a unnamed prepared statement.

    # File lib/sequel/adapters/shared/mysql_prepared_statements.rb, line 81
81:           def call(*)
82:             raise Error, "Cannot call prepared statement without a name" if prepared_statement_name.nil?
83:             super
84:           end

Private Instance Methods

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

Execute the prepared statement with the bind arguments instead of the given SQL.

    # File lib/sequel/adapters/shared/mysql_prepared_statements.rb, line 90
90:           def execute(sql, opts={}, &block)
91:             super(prepared_statement_name, {:arguments=>bind_arguments}.merge(opts), &block)
92:           end
execute_dui(sql, opts={}, &block) click to toggle source

Same as execute, explicit due to intricacies of alias and super.

    # File lib/sequel/adapters/shared/mysql_prepared_statements.rb, line 95
95:           def execute_dui(sql, opts={}, &block)
96:             super(prepared_statement_name, {:arguments=>bind_arguments}.merge(opts), &block)
97:           end
execute_insert(sql, opts={}, &block) click to toggle source

Same as execute, explicit due to intricacies of alias and super.

     # File lib/sequel/adapters/shared/mysql_prepared_statements.rb, line 100
100:           def execute_insert(sql, opts={}, &block)
101:             super(prepared_statement_name, {:arguments=>bind_arguments}.merge(opts), &block)
102:           end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.