Class: ActiveRecord::ConnectionAdapters::PostgreSQLProxyAdapter

Inherits:
PostgreSQLAdapter
  • Object
show all
Includes:
ActiveRecordProxyAdapters::Hijackable
Defined in:
lib/active_record/connection_adapters/postgresql_proxy_adapter.rb

Overview

This adapter is a proxy to the original PostgreSQLAdapter, allowing the use of the ActiveRecordProxyAdapters::PrimaryReplicaProxy.

Constant Summary collapse

ADAPTER_NAME =
"PostgreSQLProxy"

Instance Method Summary collapse

Constructor Details

#initializePostgreSQLProxyAdapter

Returns a new instance of PostgreSQLProxyAdapter.



24
25
26
27
28
# File 'lib/active_record/connection_adapters/postgresql_proxy_adapter.rb', line 24

def initialize(...)
  @proxy = ActiveRecordProxyAdapters::PostgreSQLProxy.new(self)

  super
end