Type:
Class
Constants:
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) 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 } }
INDEX_TYPES : [:fulltext, :spatial]
INDEX_USINGS : [:btree, :hash]
case_insensitive_comparison

case_insensitive_comparison(table, attribute, column, value) Instance Public methods

2015-06-20 00:00:00
type_cast

type_cast(value, column) Instance Public methods

2015-06-20 00:00:00
limited_update_conditions

limited_update_conditions(where_sql, quoted_table_name, quoted_primary_key) Instance Public methods

2015-06-20 00:00:00
supports_primary_key?

supports_primary_key?() Instance Public methods

2015-06-20 00:00:00
add_column_sql

add_column_sql(table_name, column_name, type, options = {}) Instance Protected methods

2015-06-20 00:00:00
recreate_database

recreate_database(name, options = {}) Instance Public methods Drops the database

2015-06-20 00:00:00
remove_columns_sql

remove_columns_sql(table_name, *column_names) Instance Protected methods

2015-06-20 00:00:00
change_column_default

change_column_default(table_name, column_name, default) Instance Public methods

2015-06-20 00:00:00
begin_isolated_db_transaction

begin_isolated_db_transaction(isolation) Instance Public methods

2015-06-20 00:00:00
index_algorithms

index_algorithms() Instance Public methods

2015-06-20 00:00:00