Module: Sequel::MySQL::Dataset::PreparedStatementMethods
- Includes:
- Dataset::UnnumberedArgumentMapper
- Defined in:
- lib/sequel_core/adapters/mysql.rb
Overview
Methods for MySQL prepared statements using the native driver.
Constant Summary
Constants included from Dataset::ArgumentMapper
Dataset::ArgumentMapper::SQL_QUERY_TYPE
Instance Attribute Summary
Attributes included from Dataset::ArgumentMapper
#bind_arguments, #prepared_statement_name
Instance Method Summary collapse
-
#execute(sql, opts = {}, &block) ⇒ Object
Execute the prepared statement with the bind arguments instead of the given SQL.
-
#execute_dui(sql, opts = {}, &block) ⇒ Object
Same as execute, explicit due to intricacies of alias and super.
Methods included from Dataset::ArgumentMapper
Instance Method Details
#execute(sql, opts = {}, &block) ⇒ Object
Execute the prepared statement with the bind arguments instead of the given SQL.
241 242 243 |
# File 'lib/sequel_core/adapters/mysql.rb', line 241 def execute(sql, opts={}, &block) super(prepared_statement_name, {:arguments=>bind_arguments}.merge(opts), &block) end |
#execute_dui(sql, opts = {}, &block) ⇒ Object
Same as execute, explicit due to intricacies of alias and super.
246 247 248 |
# File 'lib/sequel_core/adapters/mysql.rb', line 246 def execute_dui(sql, opts={}, &block) super(prepared_statement_name, {:arguments=>bind_arguments}.merge(opts), &block) end |