Module: Sequel::JDBC::Transactions
- Included in:
- DB2::DatabaseMethods, Derby::DatabaseMethods, HSQLDB::DatabaseMethods, Oracle::DatabaseMethods, SqlAnywhere::DatabaseMethods
- Defined in:
- lib/sequel/adapters/jdbc/transactions.rb
Instance Method Summary collapse
- #freeze ⇒ Object
-
#supports_savepoints? ⇒ Boolean
Check the JDBC DatabaseMetaData for savepoint support.
-
#supports_transaction_isolation_levels? ⇒ Boolean
Check the JDBC DatabaseMetaData for support for serializable isolation, since that’s the value most people will use.
Instance Method Details
#freeze ⇒ Object
6 7 8 9 |
# File 'lib/sequel/adapters/jdbc/transactions.rb', line 6 def freeze supports_savepoints? super end |
#supports_savepoints? ⇒ Boolean
Check the JDBC DatabaseMetaData for savepoint support
12 13 14 15 |
# File 'lib/sequel/adapters/jdbc/transactions.rb', line 12 def supports_savepoints? return @supports_savepoints if defined?(@supports_savepoints) @supports_savepoints = synchronize{|c| c.getMetaData.supports_savepoints} end |
#supports_transaction_isolation_levels? ⇒ Boolean
Check the JDBC DatabaseMetaData for support for serializable isolation, since that’s the value most people will use.
19 20 21 |
# File 'lib/sequel/adapters/jdbc/transactions.rb', line 19 def supports_transaction_isolation_levels? synchronize{|conn| conn.getMetaData.supportsTransactionIsolationLevel(JavaSQL::Connection::TRANSACTION_SERIALIZABLE)} end |