Class/Module Index [+]

Quicksearch

Sequel::JDBC::Transactions

Public Instance Methods

supports_savepoints?() click to toggle source

Check the JDBC DatabaseMetaData for savepoint support

# 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?() click to toggle source

Check the JDBC DatabaseMetaData for support for serializable isolation, since that's the value most people will use.

# File lib/sequel/adapters/jdbc/transactions.rb, line 19
def supports_transaction_isolation_levels?
  synchronize{|conn| conn.getMetaData.supportsTransactionIsolationLevel(JavaSQL::Connection::TRANSACTION_SERIALIZABLE)}
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.