Module: Sequel::MySQL

Defined in:
lib/sequel/adapters/mysql.rb,
lib/sequel/adapters/shared/mysql.rb,
lib/sequel/adapters/utils/mysql_mysql2.rb,
lib/sequel/adapters/utils/mysql_prepared_statements.rb

Defined Under Namespace

Modules: DatabaseMethods, DatasetMethods, MysqlMysql2, PreparedStatements Classes: Adapter, Database, Dataset

Constant Summary collapse

TYPE_TRANSLATOR_BOOLEAN =
boolean.freeze
TYPE_TRANSLATOR_INTEGER =
integer.freeze
MYSQL_TYPES =

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

{}
RUBY_MYSQL_3 =
!Mysql.respond_to?(:init)
RUBY_MYSQL_4 =
RUBY_MYSQL_3 && ::Mysql::VERSION.to_i >= 4

Class Method Summary collapse

Class Method Details

.mock_adapter_setup(db) ⇒ Object



11
12
13
14
15
# File 'lib/sequel/adapters/shared/mysql.rb', line 11

def self.mock_adapter_setup(db)
  db.instance_exec do
    @server_version = 50617
  end
end