module Sequel::MySQL

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

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.