Sha256: 0f98f32e58f178cfd8626eea6f09768de843a332f55196c856f9ff9aa01d10f4
Contents?: true
Size: 696 Bytes
Versions: 3
Compression:
Stored size: 696 Bytes
Contents
warn "Jdbc-MySQL is only for use with JRuby" if (JRUBY_VERSION.nil? rescue true) require 'jdbc/mysql/version' module Jdbc module MySQL def self.driver_jar "mysql-connector-j-#{DRIVER_VERSION}.jar" end def self.load_driver(method = :load) send method, driver_jar end def self.driver_name 'com.mysql.cj.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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jdbc-mysql-9.1.0.1 | lib/jdbc/mysql.rb |
jdbc-mysql-8.4.0.1 | lib/jdbc/mysql.rb |
jdbc-mysql-8.2.0.2 | lib/jdbc/mysql.rb |