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
-
#call ⇒ Object
Raise a more obvious error if you attempt to call a unnamed prepared statement.
Methods included from Sequel::Postgres::DatasetMethods::PreparedStatementMethods
Methods included from Dataset::ArgumentMapper
Instance Method Details
#call ⇒ Object
Raise a more obvious error if you attempt to call a unnamed prepared statement.
612 613 614 615 |
# File 'lib/sequel/adapters/postgres.rb', line 612 def call(*) raise Error, "Cannot call prepared statement without a name" if prepared_statement_name.nil? super end |