Module: Sequel::Fdbsql::Dataset::PreparedStatementMethods

Includes:
BindArgumentMethods
Defined in:
lib/sequel/adapters/fdbsql.rb

Overview

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

Instance Attribute Summary

Attributes included from Dataset::ArgumentMapper

#bind_arguments, #prepared_statement_name

Instance Method Summary collapse

Methods included from Sequel::Fdbsql::DatasetMethods::PreparedStatementMethods

#prepared_sql, #run

Methods included from Dataset::ArgumentMapper

#prepared_sql

Instance Method Details

#callObject

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

Raises:



127
128
129
130
# 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