module Sequel::JDBC::Dataset::PreparedStatementMethods

Use JDBC PreparedStatements instead of emulated ones. Statements created using prepare are cached at the connection level to allow reuse. This also supports bind variables by using unnamed prepared statements created using call.

Private Instance Methods

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

Execute the prepared SQL using the stored type and arguments derived from the hash passed to call.

Calls superclass method
# File lib/sequel/adapters/jdbc.rb, line 626
def execute(sql, opts={}, &block)
  super(self, {:arguments=>bind_arguments}.merge(opts), &block)
end
execute_dui(sql, opts={}, &block) click to toggle source

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

Calls superclass method
# File lib/sequel/adapters/jdbc.rb, line 631
def execute_dui(sql, opts={}, &block)
  super(self, {:arguments=>bind_arguments}.merge(opts), &block)
end
execute_insert(sql, opts={}, &block) click to toggle source

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

Calls superclass method
# File lib/sequel/adapters/jdbc.rb, line 636
def execute_insert(sql, opts={}, &block)
  super(self, {:arguments=>bind_arguments, :type=>:insert}.merge(opts), &block)
end