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

native_database_types() Instance Public methods

2015-06-20 00:00:00
drop_table

drop_table(table_name, options = {}) Instance Public methods

2015-06-20 00:00:00
translate_exception

translate_exception(exception, message) Instance Protected methods

2015-06-20 00:00:00
table_exists?

table_exists?(name) Instance Public methods

2015-06-20 00:00:00
subquery_for

subquery_for(key, select) Instance Protected methods MySQL is too stupid to

2015-06-20 00:00:00
remove_index_sql

remove_index_sql(table_name, options = {}) Instance Protected methods

2015-06-20 00:00:00
collation

collation() Instance Public methods Returns the database collation strategy

2015-06-20 00:00:00
charset

charset() Instance Public methods Returns the database character set.

2015-06-20 00:00:00
emulate_booleans

emulate_booleans Class Public methods By default, the

2015-06-20 00:00:00
type_to_sql

type_to_sql(type, limit = nil, precision = nil, scale = nil) Instance Public methods Maps

2015-06-20 00:00:00