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.
Execute the prepared SQL using the stored type and arguments derived from the hash passed to call.
# File lib/sequel/adapters/jdbc.rb, line 669 def execute(sql, opts=OPTS, &block) super(self, {:arguments=>bind_arguments}.merge(opts), &block) end
Same as execute, explicit due to intricacies of alias and super.
# File lib/sequel/adapters/jdbc.rb, line 674 def execute_dui(sql, opts=OPTS, &block) super(self, {:arguments=>bind_arguments}.merge(opts), &block) end
Same as execute, explicit due to intricacies of alias and super.
# File lib/sequel/adapters/jdbc.rb, line 679 def execute_insert(sql, opts=OPTS, &block) super(self, {:arguments=>bind_arguments, :type=>:insert}.merge(opts), &block) end