Module: ActiveRecord::ReadysetConnectionHandling
- Defined in:
- lib/active_record/readyset_connection_handling.rb
Overview
The methods in these modules are required for Rails to recognize our custom adapter
Instance Method Summary collapse
Instance Method Details
#readyset_adapter_class ⇒ Object
6 7 8 |
# File 'lib/active_record/readyset_connection_handling.rb', line 6 def readyset_adapter_class ConnectionAdapters::ReadysetAdapter end |
#readyset_connection(config) ⇒ Object
:nodoc:
10 11 12 13 14 15 16 |
# File 'lib/active_record/readyset_connection_handling.rb', line 10 def readyset_connection(config) # :nodoc: pg_conn = postgresql_connection(config) readyset_adapter_class.new(pg_conn) rescue => e readyset_adapter_class.annotate_error(e) raise e end |