ANN: Sequel 0.1.2 Released

Discussion in 'Ruby' started by Sharon Rosner, May 19, 2007.

  1. 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
    Sharon Rosner, May 19, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sharon Rosner
    Replies:
    0
    Views:
    146
    Sharon Rosner
    Apr 16, 2007
  2. Sharon Rosner

    ANN: Sequel 0.0.20 Released

    Sharon Rosner, Apr 18, 2007, in forum: Ruby
    Replies:
    0
    Views:
    106
    Sharon Rosner
    Apr 18, 2007
  3. Sharon Rosner

    ANN: Sequel 0.1.0 Released

    Sharon Rosner, Apr 22, 2007, in forum: Ruby
    Replies:
    0
    Views:
    97
    Sharon Rosner
    Apr 22, 2007
  4. Sharon Rosner
    Replies:
    0
    Views:
    102
    Sharon Rosner
    May 20, 2007
  5. Sharon Rosner
    Replies:
    1
    Views:
    114
    Gregory Brown
    May 25, 2007
Loading...

Share This Page