JRuby and Ruby 1.9 Officially Supported


Sequel now officially supports JRuby 1.1.3 and Ruby 1.9 (svn revision 18194 at least). Using JRuby with the JDBC adapter, PostgreSQL, MySQL, and SQLite now enjoy almost full support, though not everything works the same as using the native adapter. Depending on what you are doing, it may make sense to use postgres-pr on JRuby instead of PostgreSQL-JDBC.

To use the new JDBC support, the database connection string you give Sequel is now passed directly to JDBC, here are a few examples:

Sequel.connect('jdbc:postgresql://host/database?user=*&password=*')
Sequel.connect('jdbc:mysql://host/database?user=*&password=*')
Sequel.connect('jdbc:sqlite::memory:')
Sequel.connect('jdbc:sqlite:relative/path.db')
Sequel.connect('jdbc:sqlite:/absolute/path.db')

Single Gem


Sequel is now distributed as a single gem named sequel, by combining the previous sequel_core and sequel gems. You can still just “require 'sequel_core'” if you don't want the model functionality.

Database Adapter Improvements


Backwards Incompatible Changes


Other Notable Changes