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: Database, Dataset

Constant Summary

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.freeze
MYSQL_TYPES =

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

{}

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