module Sequel::Fdbsql::Dataset::PreparedStatementMethods

Allow use of server side prepared statements for FDBSQL using the pg driver.

Public Instance Methods

call(*) click to toggle source

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

Calls superclass method
# File lib/sequel/adapters/fdbsql.rb, line 127
def call(*)
  raise Error, "Cannot call prepared statement without a name" if prepared_statement_name.nil?
  super
end

Private Instance Methods

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

Execute the stored prepared statement name and the stored bind arguments instead of the SQL given.

# File lib/sequel/adapters/fdbsql.rb, line 136
def execute(sql, opts=OPTS, &block)
  super(prepared_statement_name, opts, &block)
end
execute_dui(sql, opts=OPTS, &block) click to toggle source

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

# File lib/sequel/adapters/fdbsql.rb, line 141
def execute_dui(sql, opts=OPTS, &block)
  super(prepared_statement_name, opts, &block)
end