Module: Sequel::JDBC::Transactions

Constant Summary collapse

TRANSACTION_BEGIN =
'Transaction.begin'.freeze
TRANSACTION_COMMIT =
'Transaction.commit'.freeze
TRANSACTION_RELEASE_SP =
'Transaction.release_savepoint'.freeze
TRANSACTION_ROLLBACK =
'Transaction.rollback'.freeze
TRANSACTION_ROLLBACK_SP =
'Transaction.rollback_savepoint'.freeze
TRANSACTION_SAVEPOINT =
'Transaction.savepoint'.freeze

Instance Method Summary collapse

Instance Method Details

#supports_savepoints?Boolean

Check the JDBC DatabaseMetaData for savepoint support

Returns:

  • (Boolean)


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..supports_savepoints}
end