Module | Sequel::JDBC
In: | lib/sequel/adapters/jdbc.rb lib/sequel/adapters/jdbc/h2.rb lib/sequel/adapters/jdbc/mysql.rb lib/sequel/adapters/jdbc/oracle.rb lib/sequel/adapters/jdbc/postgresql.rb lib/sequel/adapters/jdbc/sqlite.rb lib/sequel/adapters/jdbc/mssql.rb

Houses Sequel‘s JDBC support when running on JRuby. Support for individual database types is done using sub adapters. PostgreSQL, MySQL, SQLite, Oracle, and MSSQL all have relatively good support, close the the level supported by the native adapter. PostgreSQL, MySQL, SQLite can load necessary support using the jdbc-* gem, if it is installed, though they will work if you have the correct .jar in your CLASSPATH. Oracle and MSSQL should load the necessary support if you have the .jar in your CLASSPATH. For all other databases, the Java class should be loaded manually before calling Sequel.connect.

Note that when using a JDBC adapter, the best way to use Sequel is via Sequel.connect, NOT Sequel.jdbc. Use the JDBC connection string when connecting, which will be in a different format than the native connection string. The connection string should start with ‘jdbc:’. For PostgreSQL, use ‘jdbc:postgresql:’, and for SQLite you do not need 2 preceding slashes for the database name (use no preceding slashes for a relative path, and one preceding slash for an absolute path).

### Classes and Modules

Module Sequel::JDBC::H2
Module Sequel::JDBC::JavaLang
Module Sequel::JDBC::JavaSQL
Module Sequel::JDBC::MSSQL
Module Sequel::JDBC::MySQL
Module Sequel::JDBC::Oracle
Module Sequel::JDBC::Postgres
Module Sequel::JDBC::SQLite
Class Sequel::JDBC::Database

### Constants

DATABASE_SETUP | = | {:postgresql=>proc do |db| Sequel.require 'adapters/jdbc/postgresql' |  | Contains procs keyed on sub adapter type that extend the given database object so it supports the correct database type.

[Validate]