Module: TransactionIsolation::ActiveRecord::ConnectionAdapters::AbstractAdapter

Defined in:
lib/transaction_isolation/active_record/connection_adapters/abstract_adapter.rb

Constant Summary collapse

VALID_ISOLATION_LEVELS =
%i[read_uncommitted read_committed repeatable_read serializable].freeze

Instance Method Summary collapse

Instance Method Details

#isolation_level(level) ⇒ Object

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/transaction_isolation/active_record/connection_adapters/abstract_adapter.rb', line 16

def isolation_level(level)
  raise NotImplementedError
end

#supports_isolation_levels?Boolean

If true, #isolation_level(level) method is available

Returns:

  • (Boolean)


12
13
14
# File 'lib/transaction_isolation/active_record/connection_adapters/abstract_adapter.rb', line 12

def supports_isolation_levels?
  false
end