# ANN: Sequel 3.25.0 Released

**URL:** <https://www.ruby-forum.com/t/ann-sequel-3-25-0-released/208979>\
**Category:** Ruby\
**Created:** [July 1, 2011, 5:37pm UTC](https://www.ruby-forum.com/t/ann-sequel-3-25-0-released/208979 "2011-07-01T17:37:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [July 1, 2011, 5:37pm UTC](https://www.ruby-forum.com/t/ann-sequel-3-25-0-released/208979/1 "2011-07-01T17:37:30Z")

</div>

Sequel is a lightweight database access toolkit for Ruby.

- Sequel provides thread safety, connection pooling and a concise  
DSL for constructing SQL queries and table schemas.
- Sequel includes a comprehensive ORM layer for mapping records to  
Ruby objects and handling associated records.
- Sequel supports advanced database features such as prepared  
statements, bound variables, stored procedures, savepoints,  
two-phase commit, transaction isolation, master/slave  
configurations, and database sharding.
- Sequel currently has adapters for ADO, Amalgalite, DataObjects,  
DB2, DBI, Firebird, Informix, JDBC, MySQL, Mysql2, ODBC, OpenBase,  
Oracle, PostgreSQL, SQLite3, Swift, and TinyTDS.

Sequel 3.25.0 has been released and should be available on the gem  
mirrors.

= New Features

- drop\_table, drop\_view, drop\_column, and drop\_constraint all now  
support a :cascade option for using CASCADE.

- You can now use datasets as expressions, allowing things such as:

- Dataset#select\_group has been added for grouping and selecting on  
the same columns.

- Dataset#exclude\_where and #exclude\_having methods have been added,  
allowing you to specify which clause to affect. #exclude’s  
behavior is still to add to the HAVING clause if one is present,  
and use the WHERE clause otherwise.

- Dataset#select\_all now accepts optional arguments and will select  
all columns from those arguments if present:

- Dataset#group and #group\_and\_count now both accept virtual row  
blocks:

- If you use a LiteralString as a validation error message,  
Errors#full\_messages will now not add the related column name to  
the start of the error message.

- Model.set\_dataset now accepts SQL::Identifier,  
SQL::QualifiedIdentifier, and SQL::AliasedExpression instances,  
treating them like Symbols.

= Other Improvements

- The association\_pks plugin’s setter method will now automatically  
convert a given array of strings to an array of integers if the  
primary key field is an integer field, which should make it easier  
to use in web applications.

- nil bound variable, prepared statement, and stored procedure  
arguments are now handled correctly in the JDBC adapter.

- On 1.9, you can now load plugins even when ::ClassMethods,  
::InstanceMethods, or ::DatasetMethods is defined.

= Backwards Compatibility

- The tinytds adapter now only works with tiny\_tds 0.4.5 and greater.  
Also, if you were using the tinytds adapter with FreeTDS 0.91rc1,  
you need to upgrade to FreeTDS 0.91rc2 for it to work. Also, if  
you were referencing an entry in the freetds.conf file, you now  
need to specify it directly using the :dataserver option when  
connecting, the adapter no longer copies the :host option to the  
:dataserver option.

- On postgresql, Sequel now no longer drops tables with CASCADE by  
default. You now have to use the :cascade option to drop\_table if  
you want to use CASCADE.

- The Database#drop\_table\_sql private method now takes an additional  
options hash argument.

Thanks,  
Jeremy

- {Website}[[http://sequel.rubyforge.org](http://sequel.rubyforge.org)]
- {Source code}[[GitHub - jeremyevans/sequel: Sequel: The Database Toolkit for Ruby](http://github.com/jeremyevans/sequel)]
- {Blog}[[http://sequel.heroku.com](http://sequel.heroku.com)]
- {Bug tracking}[[Issues · jeremyevans/sequel · GitHub](http://github.com/jeremyevans/sequel/issues)]
- {Google group}[[http://groups.google.com/group/sequel-talk](http://groups.google.com/group/sequel-talk)]
- {RDoc}[[http://sequel.rubyforge.org/rdoc](http://sequel.rubyforge.org/rdoc)]
