Class: ActiveVersion::Runtime::ActiveRecordAdapter
- Inherits:
-
Object
- Object
- ActiveVersion::Runtime::ActiveRecordAdapter
- Defined in:
- lib/active_version/runtime.rb
Instance Method Summary collapse
- #base_connection ⇒ Object
- #connection_for(model_class, _version_type) ⇒ Object
- #supports_current_transaction_id?(connection) ⇒ Boolean
- #supports_partition_catalog_checks?(connection) ⇒ Boolean
- #supports_transactional_context?(connection) ⇒ Boolean
Instance Method Details
#base_connection ⇒ Object
40 41 42 |
# File 'lib/active_version/runtime.rb', line 40 def base_connection ::ActiveRecord::Base.connection end |
#connection_for(model_class, _version_type) ⇒ Object
44 45 46 |
# File 'lib/active_version/runtime.rb', line 44 def connection_for(model_class, _version_type) model_class.connection end |
#supports_current_transaction_id?(connection) ⇒ Boolean
52 53 54 |
# File 'lib/active_version/runtime.rb', line 52 def supports_current_transaction_id?(connection) postgresql_connection?(connection) end |
#supports_partition_catalog_checks?(connection) ⇒ Boolean
56 57 58 |
# File 'lib/active_version/runtime.rb', line 56 def supports_partition_catalog_checks?(connection) postgresql_connection?(connection) end |
#supports_transactional_context?(connection) ⇒ Boolean
48 49 50 |
# File 'lib/active_version/runtime.rb', line 48 def supports_transactional_context?(connection) postgresql_connection?(connection) end |