module Sequel::MySQL

  1. lib/sequel/adapters/mysql.rb
  2. lib/sequel/adapters/shared/mysql.rb
  3. lib/sequel/adapters/shared/mysql_prepared_statements.rb
  4. show all
Parent: Sequel

Module for holding all MySQL-related classes and modules for Sequel.

Constants

MYSQL_TYPES = {}  

Hash with integer keys and callable values for converting MySQL types.

TYPE_TRANSLATOR = tt = Class.new do def boolean(s) s.to_i != 0 end def integer(s) s.to_i end def float(s) s.to_f end end.new  

Attributes

convert_invalid_date_time [RW]

Whether to convert invalid date time values by default.

Only applies to Sequel::Database instances created after this has been set.

convert_tinyint_to_bool [RW]

Sequel converts the column type tinyint(1) to a boolean by default when using the native MySQL or Mysql2 adapter. You can turn off the conversion by setting this to false. This setting is ignored when connecting to MySQL via the do or jdbc adapters, both of which automatically do the conversion.

default_charset [RW]

Set the default charset used for CREATE TABLE. You can pass the :charset option to create_table to override this setting.

default_collate [RW]

Set the default collation used for CREATE TABLE. You can pass the :collate option to create_table to override this setting.

default_engine [RW]

Set the default engine used for CREATE TABLE. You can pass the :engine option to create_table to override this setting.