Module: ActiveRecord::ConnectionHandling
- Defined in:
- lib/active_record/connection_adapters/yugabytedb_adapter.rb
Overview
:nodoc:
Instance Method Summary collapse
- #yugabytedb_adapter_class ⇒ Object
-
#yugabytedb_connection(config) ⇒ Object
Establishes a connection to the database that’s used by all Active Record objects.
Instance Method Details
#yugabytedb_adapter_class ⇒ Object
25 26 27 |
# File 'lib/active_record/connection_adapters/yugabytedb_adapter.rb', line 25 def yugabytedb_adapter_class ConnectionAdapters::YugabyteDBAdapter end |
#yugabytedb_connection(config) ⇒ Object
Establishes a connection to the database that’s used by all Active Record objects
30 31 32 |
# File 'lib/active_record/connection_adapters/yugabytedb_adapter.rb', line 30 def yugabytedb_connection(config) yugabytedb_adapter_class.new(config) end |