Sha256: a057aa1415dc7c704aad77e091477301a68922bca7d194cbf40724cb39972a6a
Contents?: true
Size: 646 Bytes
Versions: 4
Compression:
Stored size: 646 Bytes
Contents
# -*- coding: utf-8 -*- require 'sequel' db = Sequel.connect(Dcmgr.conf.database_url) #require 'logger' #db.loggers << Logger.new(STDOUT) if db.is_a?(Sequel::MySQL::Database) Sequel::MySQL.default_charset = 'utf8' Sequel::MySQL.default_collate = 'utf8_general_ci' Sequel::MySQL.default_engine = 'InnoDB' db << "SET AUTOCOMMIT=0" end # Disable TEXT to Sequel::SQL::Blob translation. # see the thread: MySQL text turning into blobs # http://groups.google.com/group/sequel-talk/browse_thread/thread/d0f4c85abe9b3227/9ceaf291f90111e6 # lib/sequel/adapters/mysql.rb [249, 250, 251, 252].each { |v| Sequel::MySQL::MYSQL_TYPES.delete(v) }
Version data entries
4 entries across 4 versions & 2 rubygems