Module: ActiveRecord::ConnectionAdapters

Defined in:
lib/database_cleaner/active_record/deletion.rb,
lib/database_cleaner/active_record/truncation.rb

Defined Under Namespace

Classes: AbstractAdapter, IBM_DBAdapter, JdbcAdapter, Mysql2Adapter, MysqlAdapter, OracleEnhancedAdapter, PostgreSQLAdapter, SQLServerAdapter, SQLite3Adapter, SQLiteAdapter

Constant Summary collapse

USE_ARJDBC_WORKAROUND =

Activerecord-jdbc-adapter defines class dependencies a bit differently - if it is present, confirm to ArJdbc hierarchy to avoid ‘superclass mismatch’ errors.

defined?(ArJdbc)
MYSQL_ADAPTER_PARENT =
USE_ARJDBC_WORKAROUND ? JdbcAdapter : AbstractAdapter
SQLITE_ADAPTER_PARENT =
USE_ARJDBC_WORKAROUND ? JdbcAdapter : SQLiteAdapter