module ActiveRecord::ConnectionAdapters
Public class methods
Registers a custom database adapter.
Can also be used to define aliases.
Example
ActiveRecord::ConnectionAdapters.register("megadb", "MegaDB::ActiveRecordAdapter", "mega_db/active_record_adapter")
ActiveRecord::ConnectionAdapters.register("mysql", "ActiveRecord::ConnectionAdapters::TrilogyAdapter", "active_record/connection_adapters/trilogy_adapter")
Source code GitHub
# File activerecord/lib/active_record/connection_adapters.rb, line 22
def register(name, class_name, path = class_name.underscore)
@adapters[name.to_s] = [class_name, path]
end
Namespace
ActiveRecord::
ConnectionAdapters:: AbstractAdapter ActiveRecord::
ConnectionAdapters:: AbstractMysqlAdapter ActiveRecord::
ConnectionAdapters:: BoundSchemaReflection ActiveRecord::
ConnectionAdapters:: Column ActiveRecord::
ConnectionAdapters:: ColumnMethods ActiveRecord::
ConnectionAdapters:: ConnectionHandler ActiveRecord::
ConnectionAdapters:: ConnectionPool ActiveRecord::
ConnectionAdapters:: DatabaseLimits ActiveRecord::
ConnectionAdapters:: DatabaseStatements ActiveRecord::
ConnectionAdapters:: MySQL ActiveRecord::
ConnectionAdapters:: Mysql2 ActiveRecord::
ConnectionAdapters:: Mysql2Adapter ActiveRecord::
ConnectionAdapters:: NullColumn ActiveRecord::
ConnectionAdapters:: PostgreSQL ActiveRecord::
ConnectionAdapters:: PostgreSQLAdapter ActiveRecord::
ConnectionAdapters:: QueryCache ActiveRecord::
ConnectionAdapters:: Quoting ActiveRecord::
ConnectionAdapters:: RealTransaction ActiveRecord::
ConnectionAdapters:: RestartParentTransaction ActiveRecord::
ConnectionAdapters:: SQLite3 ActiveRecord::
ConnectionAdapters:: SQLite3Adapter ActiveRecord::
ConnectionAdapters:: SavepointTransaction ActiveRecord::
ConnectionAdapters:: Savepoints ActiveRecord::
ConnectionAdapters:: SchemaCache ActiveRecord::
ConnectionAdapters:: SchemaReflection ActiveRecord::
ConnectionAdapters:: SchemaStatements ActiveRecord::
ConnectionAdapters:: Table ActiveRecord::
ConnectionAdapters:: TableDefinition ActiveRecord::
ConnectionAdapters:: TransactionInstrumenter ActiveRecord::
ConnectionAdapters:: TransactionState ActiveRecord::
ConnectionAdapters:: Trilogy ActiveRecord::
ConnectionAdapters:: TrilogyAdapter
Definition files
activerecord/
lib/ active_record/ connection_adapters.rb activerecord/
lib/ active_record/ connection_adapters/ abstract/ connection_handler.rb activerecord/
lib/ active_record/ connection_adapters/ abstract/ connection_pool.rb activerecord/
lib/ active_record/ connection_adapters/ abstract/ connection_pool/ queue.rb activerecord/
lib/ active_record/ connection_adapters/ abstract/ connection_pool/ reaper.rb
49 More Less
activerecord/
lib/ active_record/ connection_adapters/ abstract/ database_limits.rb activerecord/
lib/ active_record/ connection_adapters/ abstract/ database_statements.rb activerecord/
lib/ active_record/ connection_adapters/ abstract/ query_cache.rb activerecord/
lib/ active_record/ connection_adapters/ abstract/ quoting.rb activerecord/
lib/ active_record/ connection_adapters/ abstract/ savepoints.rb activerecord/
lib/ active_record/ connection_adapters/ abstract/ schema_creation.rb activerecord/
lib/ active_record/ connection_adapters/ abstract/ schema_definitions.rb activerecord/
lib/ active_record/ connection_adapters/ abstract/ schema_statements.rb activerecord/
lib/ active_record/ connection_adapters/ abstract/ transaction.rb activerecord/
lib/ active_record/ connection_adapters/ abstract_adapter.rb activerecord/
lib/ active_record/ connection_adapters/ abstract_mysql_adapter.rb activerecord/
lib/ active_record/ connection_adapters/ column.rb activerecord/
lib/ active_record/ connection_adapters/ mysql/ column.rb activerecord/
lib/ active_record/ connection_adapters/ mysql/ database_statements.rb activerecord/
lib/ active_record/ connection_adapters/ mysql/ quoting.rb activerecord/
lib/ active_record/ connection_adapters/ mysql/ schema_creation.rb activerecord/
lib/ active_record/ connection_adapters/ mysql/ schema_definitions.rb activerecord/
lib/ active_record/ connection_adapters/ mysql/ schema_dumper.rb activerecord/
lib/ active_record/ connection_adapters/ mysql/ schema_statements.rb activerecord/
lib/ active_record/ connection_adapters/ mysql2/ database_statements.rb activerecord/
lib/ active_record/ connection_adapters/ mysql2_adapter.rb activerecord/
lib/ active_record/ connection_adapters/ pool_config.rb activerecord/
lib/ active_record/ connection_adapters/ pool_manager.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql/ column.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql/ database_statements.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql/ oid/ interval.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql/ oid/ money.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql/ oid/ range.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql/ oid/ timestamp_with_time_zone.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql/ oid/ uuid.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql/ quoting.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql/ referential_integrity.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql/ schema_creation.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql/ schema_definitions.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql/ schema_dumper.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql/ schema_statements.rb activerecord/
lib/ active_record/ connection_adapters/ postgresql_adapter.rb activerecord/
lib/ active_record/ connection_adapters/ schema_cache.rb activerecord/
lib/ active_record/ connection_adapters/ sqlite3/ column.rb activerecord/
lib/ active_record/ connection_adapters/ sqlite3/ database_statements.rb activerecord/
lib/ active_record/ connection_adapters/ sqlite3/ quoting.rb activerecord/
lib/ active_record/ connection_adapters/ sqlite3/ schema_creation.rb activerecord/
lib/ active_record/ connection_adapters/ sqlite3/ schema_definitions.rb activerecord/
lib/ active_record/ connection_adapters/ sqlite3/ schema_dumper.rb activerecord/
lib/ active_record/ connection_adapters/ sqlite3/ schema_statements.rb activerecord/
lib/ active_record/ connection_adapters/ sqlite3_adapter.rb activerecord/
lib/ active_record/ connection_adapters/ statement_pool.rb activerecord/
lib/ active_record/ connection_adapters/ trilogy/ database_statements.rb activerecord/
lib/ active_record/ connection_adapters/ trilogy_adapter.rb