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.

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:



653
654
655
656
# File 'lib/sequel/adapters/postgres.rb', line 653

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