Module: Sequel::Swift::Postgres::AdapterMethods
- Includes:
- Postgres::AdapterMethods
- Defined in:
- lib/sequel/adapters/swift/postgres.rb
Overview
Methods to add to the Swift adapter/connection to allow it to work with the shared PostgreSQL code.
Constant Summary
Constants included from Postgres::AdapterMethods
Postgres::AdapterMethods::SELECT_CURRVAL, Postgres::AdapterMethods::SELECT_CUSTOM_SEQUENCE, Postgres::AdapterMethods::SELECT_PK, Postgres::AdapterMethods::SELECT_SERIAL_SEQUENCE
Instance Attribute Summary
Attributes included from Postgres::AdapterMethods
Instance Method Summary collapse
-
#execute(sql, *args) ⇒ Object
Log all SQL that goes through the execute method to the related database object.
Methods included from Postgres::AdapterMethods
#apply_connection_settings, #last_insert_id, #primary_key, #sequence
Instance Method Details
#execute(sql, *args) ⇒ Object
Log all SQL that goes through the execute method to the related database object.
17 18 19 20 21 |
# File 'lib/sequel/adapters/swift/postgres.rb', line 17 def execute(sql, *args) @db.log_yield(sql){super} rescue SwiftError => e @db.send(:raise_error, e) end |