Houses Sequel's JDBC support when running on JRuby.
Contains procs keyed on sub adapter type that extend the given database object so it supports the correct database type.
The types to check for 0 scale to transform :decimal types to :integer.
Used to identify a jndi connection and to extract the jndi resource name.
Allowing loading the necessary JDBC support via a gem, which works for PostgreSQL, MySQL, and SQLite.
# File lib/sequel/adapters/jdbc.rb, line 151 def self.load_gem(name) begin require "jdbc/#{name.to_s.downcase}" rescue LoadError # jdbc gem not used, hopefully the user has the .jar in their CLASSPATH else if defined?(::Jdbc) && ( ::Jdbc.const_defined?(name) rescue nil ) jdbc_module = ::Jdbc.const_get(name) # e.g. Jdbc::SQLite3 jdbc_module.load_driver if jdbc_module.respond_to?(:load_driver) end end end
Generated with the Darkfish Rdoc Generator 2.