Sha256: b534020e10b5486ce39fbbf00fa36728e1a57495d7a12656f2b90734b8a5fdb3

Contents?: true

Size: 691 Bytes

Versions: 5

Compression:

Stored size: 691 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
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jdbc-sqlite3-3.46.1.1 lib/jdbc/sqlite3.rb
jdbc-sqlite3-3.42.0.0 lib/jdbc/sqlite3.rb
jdbc-sqlite3-3.32.3.3 lib/jdbc/sqlite3.rb
jdbc-sqlite3-3.28.0 lib/jdbc/sqlite3.rb
jdbc-sqlite3-3.27.2.1 lib/jdbc/sqlite3.rb