module Sequel::Postgres::Dataset::PreparedStatementMethods

def call(*)

Raise a more obvious error if you attempt to call a unnamed prepared statement.
def call(*)
  raise Error, "Cannot call prepared statement without a name" if prepared_statement_name.nil?
  super
end

def execute(sql, opts={}, &block)

arguments instead of the SQL given.
Execute the stored prepared statement name and the stored bind
def execute(sql, opts={}, &block)
  super(prepared_statement_name, opts, &block)
end

def execute_dui(sql, opts={}, &block)

Same as execute, explicit due to intricacies of alias and super.
def execute_dui(sql, opts={}, &block)
  super(prepared_statement_name, opts, &block)
end

def execute_insert(sql, opts={}, &block)

Same as execute, explicit due to intricacies of alias and super.
def execute_insert(sql, opts={}, &block)
  super(prepared_statement_name, opts, &block)
end