Sha256: d448cf80a4e21e55fbc5679c4ea58459570d7bc27936bf38e16e6ef4426d7dd4
Contents?: true
Size: 716 Bytes
Versions: 1
Compression:
Stored size: 716 Bytes
Contents
require 'trinidad_dbpool/webapp_extension' module Trinidad module Extensions class MysqlDbpoolWebAppExtension < DbpoolWebAppExtension def driver_name defined?(Jdbc::MySQL.driver_name) ? Jdbc::MySQL.driver_name : 'com.mysql.jdbc.Driver' end def protocol 'jdbc:mysql://' end def load_driver require 'jdbc/mysql' Jdbc::MySQL.load_driver if defined?(Jdbc::MySQL.load_driver) end def connection_properties { 'zeroDateTimeBehavior' => 'convertToNull', 'jdbcCompliantTruncation' => false, 'useUnicode' => true, 'characterEncoding' => 'utf8', } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trinidad_mysql_dbpool_extension-0.8.0 | lib/trinidad_mysql_dbpool_extension/mysql_webapp_extension.rb |