Sha256: a9a31c8549e64eb143ca260d4669712a5435640ca6f361ba97971ed90f4a247d

Contents?: true

Size: 723 Bytes

Versions: 1

Compression:

Stored size: 723 Bytes

Contents

warn "Jdbc-HSQLDB is only for use with JRuby" if (JRUBY_VERSION.nil? rescue true)

module Jdbc
  module HSQLDB
    DRIVER_VERSION = '2.2.9'
    VERSION = DRIVER_VERSION + '.1'

    def self.driver_jar
      "hsqldb-#{DRIVER_VERSION}.jar"
    end

    def self.load_driver(method = :load)
      send method, driver_jar
    end

    def self.driver_name
      'org.hsqldb.jdbcDriver'
    end

    if defined?(JRUBY_VERSION) && # enable backwards-compat behavior :
      ( Java::JavaLang::Boolean.get_boolean("jdbc.driver.autoload") || 
        Java::JavaLang::Boolean.get_boolean("jdbc.hsqldb.autoload") )
      warn "autoloading JDBC driver on require 'jdbc/hsqldb'" if $VERBOSE
      load_driver :require
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jdbc-hsqldb-2.2.9.1 lib/jdbc/hsqldb.rb