Sha256: eb34f0c02b989d3e9908c71692a9b66adad4edd6ab1eb3ef9a291ec42ef0c72b
Contents?: true
Size: 655 Bytes
Versions: 9
Compression:
Stored size: 655 Bytes
Contents
warn "Jdbc-H2 is only for use with JRuby" if (JRUBY_VERSION.nil? rescue true) require 'jdbc/h2/version' module Jdbc module H2 def self.driver_jar "h2-#{DRIVER_VERSION}.jar" end def self.load_driver(method = :load) send method, driver_jar end def self.driver_name 'org.h2.Driver' end if defined?(JRUBY_VERSION) && # enable backwards-compat behavior : ( Java::JavaLang::Boolean.get_boolean("jdbc.driver.autoload") || Java::JavaLang::Boolean.get_boolean("jdbc.h2.autoload") ) warn "autoloading JDBC driver on require 'jdbc/h2'" if $VERBOSE load_driver :require end end end
Version data entries
9 entries across 9 versions & 1 rubygems