class

ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter

v7.2.3 - Show latest stable - Superclass: AbstractAdapter

No documentation available for this class.

Included modules

  • ActiveRecord::ConnectionAdapters::MySQL::DatabaseStatements
  • ActiveRecord::ConnectionAdapters::MySQL::Quoting
  • ActiveRecord::ConnectionAdapters::MySQL::SchemaStatements

Constants

CR_SERVER_GONE_ERROR = 2006

CR_SERVER_LOST = 2013

EMULATE_BOOLEANS_TRUE = { emulate_booleans: true }.freeze

ER_CANNOT_ADD_FOREIGN = 1215

ER_CANNOT_CREATE_TABLE = 1005

ER_CLIENT_INTERACTION_TIMEOUT = 4031

ER_CONNECTION_KILLED = 1927

ER_DATA_TOO_LONG = 1406

ER_DB_CREATE_EXISTS = 1007

ER_DO_NOT_HAVE_DEFAULT = 1364

ER_DUP_ENTRY = 1062

ER_FILSORT_ABORT = 1028

ER_FK_INCOMPATIBLE_COLUMNS = 3780

ER_LOCK_DEADLOCK = 1213

ER_LOCK_WAIT_TIMEOUT = 1205

ER_NOT_NULL_VIOLATION = 1048

ER_NO_REFERENCED_ROW = 1216

ER_NO_REFERENCED_ROW_2 = 1452

ER_OUT_OF_RANGE = 1264

ER_QUERY_INTERRUPTED = 1317

ER_QUERY_TIMEOUT = 3024

ER_ROW_IS_REFERENCED = 1217

ER_ROW_IS_REFERENCED_2 = 1451

ER_SERVER_SHUTDOWN = 1053

EXTENDED_TYPE_MAPS = Concurrent::Map.new

NATIVE_DATABASE_TYPES = {\nprimary_key: "bigint auto_increment PRIMARY KEY",\nstring: { name: "varchar", limit: 255 },\ntext: { name: "text" },\ninteger: { name: "int", limit: 4 },\nbigint: { name: "bigint" },\nfloat: { name: "float", limit: 24 },\ndecimal: { name: "decimal" },\ndatetime: { name: "datetime" },\ntimestamp: { name: "timestamp" },\ntime: { name: "time" },\ndate: { name: "date" },\nbinary: { name: "blob" },\nblob: { name: "blob" },\nboolean: { name: "tinyint", limit: 1 },\njson: { name: "json" },\n}

Files

  • activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb