Class | ActiveRecord::ConnectionAdapters::Mysql2Adapter |
In: |
lib/active_record/connection_adapters/mysql2_adapter.rb
|
Parent: | AbstractAdapter |
ADAPTER_NAME | = | 'Mysql2' |
PRIMARY | = | "PRIMARY" |
LOST_CONNECTION_ERROR_MESSAGES | = | [ "Server shutdown in progress", "Broken pipe", "Lost connection to MySQL server during query", "MySQL server has gone away" ] |
QUOTED_FALSE | = | '1', '0' |
NATIVE_DATABASE_TYPES | = | { :primary_key => "int(11) DEFAULT NULL auto_increment PRIMARY KEY", :string => { :name => "varchar", :limit => 255 }, :text => { :name => "text" }, :integer => { :name => "int", :limit => 4 }, :float => { :name => "float" }, :decimal => { :name => "decimal" }, :datetime => { :name => "datetime" }, :timestamp => { :name => "datetime" }, :time => { :name => "time" }, :date => { :name => "date" }, :binary => { :name => "blob" }, :boolean => { :name => "tinyint", :limit => 1 } |
Returns an array of +Mysql2Column+ objects for the table specified by table_name.
Returns an array of arrays containing the field values. Order is the same as that returned by columns.