Sha256: ad716711cca4db20c3514f14a155f2b9e60d2a9d82d3d8ae623ebdfa17057734
Contents?: true
Size: 734 Bytes
Versions: 1
Compression:
Stored size: 734 Bytes
Contents
warn "Jdbc-MySQL is only for use with JRuby" if (JRUBY_VERSION.nil? rescue true) module Jdbc module MySQL DRIVER_VERSION = '5.1.22' VERSION = DRIVER_VERSION + '.1' def self.driver_jar "mysql-connector-java-#{DRIVER_VERSION}.jar" end def self.load_driver(method = :load) send method, driver_jar end def self.driver_name 'com.mysql.jdbc.Driver' end if defined?(JRUBY_VERSION) && # enable backwards-compat behavior : ( Java::JavaLang::Boolean.get_boolean("jdbc.driver.autoload") || Java::JavaLang::Boolean.get_boolean("jdbc.mysql.autoload") ) warn "autoloading JDBC driver on require 'jdbc/mysql'" if $VERBOSE load_driver :require end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jdbc-mysql-5.1.22.1 | lib/jdbc/mysql.rb |