Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > ANN: Sequel 0.1.2 Released

Reply
Thread Tools

ANN: Sequel 0.1.2 Released

 
 
Sharon Rosner
Guest
Posts: n/a
 
      05-19-2007
Sequel version 0.1.2 has just been released. This release contains
vaious bug fixes and enhancements. Here are the important changes:

* Support for SQL set operations (UNION, INTERSECT and EXCEPT):

DB[:a].union(DB[:b]).sql #=>
"SELECT * FROM a UNION SELECT * FROM b"

The #union, #intersect and #except methods take an optional second
parameter to specify ALL for the clause:

DB[:a].intersect(DB[:b], true).sql #=>
"SELECT * FROM a INTERSECT ALL SELECT * FROM b"

* SequelConnectionError has been removed, as it caused a some
difficulties dealing with non DB-related errors that were raised
inside transactions. However, Exception errors are automatically
converted into RuntimeError. Future releases might convert adapter-
specific errors into standard Sequel errors.

* Added DSL for defining subsets in Model classes:

class A < Sequel::Model(:a)
subset(:high_priced) {price > 100}
subset :china, :category => 'china'
end

A.high_priced.sql #=> "SELECT * FROM a WHERE (price > 100)"
A.china.sql #=> "SELECT * FROM a WHERE (category = 'china')"

* Cleaned up PostgreSQL adapter code.

* Updated spec to conform with RSpec 1.0.

======================

Join the Sequel-talk group:
http://groups.google.com/group/sequel-talk

Install the gem:
sudo gem install sequel

Or check out the source and install locally:
svn co http://ruby-sequel.googlecode.com/svn/trunk sequel
cd sequel
rake install


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ANN: Sequel 0.1.4 Released - ODBC adapter and more Sharon Rosner Ruby 1 05-25-2007 07:45 PM
ANN: Sequel 0.1.3 Released - now with DBI support! Sharon Rosner Ruby 0 05-20-2007 11:33 AM
ANN: Sequel 0.1.0 Released Sharon Rosner Ruby 0 04-22-2007 07:20 PM
ANN: Sequel 0.0.20 Released Sharon Rosner Ruby 0 04-18-2007 08:57 PM
ANN: Sequel 0.0.19 Released and Sequel discussion list Sharon Rosner Ruby 0 04-16-2007 09:48 AM



Advertisments