Sha256: e65d56ee596bb444766dac85c218d3df1b910c4310644606c56eab797dc2e4a2
Contents?: true
Size: 697 Bytes
Versions: 1
Compression:
Stored size: 697 Bytes
Contents
warn "Jdbc-H2 is only for use with JRuby" if (JRUBY_VERSION.nil? rescue true) module Jdbc module H2 DRIVER_VERSION = '1.3.170' VERSION = DRIVER_VERSION + '.1' 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jdbc-h2-1.3.170.1 | lib/jdbc/h2.rb |