Module: Sequel::Postgres::Dataset::PreparedStatementMethods

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

Overview

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

Constant Summary

Constants included from Dataset::ArgumentMapper

Dataset::ArgumentMapper::SQL_QUERY_TYPE

Instance Attribute Summary

Attributes included from Dataset::ArgumentMapper

#bind_arguments, #prepared_statement_name

Instance Method Summary collapse

Methods included from Sequel::Postgres::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:



547
548
549
550
# File 'lib/sequel/adapters/postgres.rb', line 547

def call(*)
  raise Error, "Cannot call prepared statement without a name" if prepared_statement_name.nil?
  super
end