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]
quoted_true

quoted_true() Instance Public methods

2015-06-20 00:00:00
valid_type?

valid_type?(type) Instance Public methods

2015-06-20 00:00:00
quoted_false

quoted_false() Instance Public methods

2015-06-20 00:00:00
empty_insert_statement_value

empty_insert_statement_value() Instance Public methods

2015-06-20 00:00:00
quoted_columns_for_index

quoted_columns_for_index(column_names, options = {}) Instance Protected methods

2015-06-20 00:00:00
rename_column_sql

rename_column_sql(table_name, column_name, new_column_name) Instance Protected methods

2015-06-20 00:00:00
rename_table

rename_table(table_name, new_name) Instance Public methods Renames a table.

2015-06-20 00:00:00
recreate_database

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

2015-06-20 00:00:00
translate_exception

translate_exception(exception, message) Instance Protected 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