Method: Sequel::Postgres::DatabaseMethods#supports_prepared_transactions?
- Defined in:
- lib/sequel/adapters/shared/postgres.rb
#supports_prepared_transactions? ⇒ Boolean
PostgreSQL supports prepared transactions (two-phase commit) if max_prepared_transactions is greater than 0.
502 503 504 505 |
# File 'lib/sequel/adapters/shared/postgres.rb', line 502 def supports_prepared_transactions? return @supports_prepared_transactions if defined?(@supports_prepared_transactions) @supports_prepared_transactions = self['SHOW max_prepared_transactions'].get.to_i > 0 end |