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