ANN: Sequel 0.0.19 Released and Sequel discussion list

Discussion in 'Ruby' started by Sharon Rosner, Apr 16, 2007.

  1. == Sequel 0.0.19 Released

    Sequel: Concise ORM for Ruby. Sequel provides thread safety,
    connection pooling and a concise DSL for constructing database queries
    and table schemas. Version 0.0.19 fixes a bunch of minor bugs has
    improved code coverage (rcov reports 74.5% coverage!)

    Sequel currently supports SQLite, PostgreSQL and MySQL databases.

    == Sequel by Example

    require 'sequel/sqlite'
    DB = Sequel.open 'sqlite:/:memory:'

    DB.create_table :posts
    column :title, :text
    column :category, :text
    end

    posts = DB[:posts]

    posts << {:title => 'first', :category => 'ruby'}
    posts << {:title => 'second', :category => 'orm'}

    posts.count #=> 2
    posts.sql #=> 'SELECT * FROM posts'
    posts.filter:)category => 'orm').count #=> 1
    posts.filter:)category => 'orm').sql #=> "SELECT * FROM posts WHERE
    (category = 'orm')"
    posts.order:)category).print # pretty-prints the table ordered by
    category

    == Installing Sequel

    sudo gem install sequel

    You can also check out the trunk and install locally:

    svn co http://ruby-sequel.googlecode.com/svn/trunk sequel
    cd sequel
    rake install

    == Changes in 0.0.19

    * More specs for Dataset.
    * Fixed Dataset#invert_order to work correctly with strings.
    * Fixed Model#== to check equality of values.
    * Added Model#exclude and Model#order.
    * Fixed Dataset#order and Dataset#group to behave correctly when
    supplied with qualified field name symbols.
    * Removed Database#literal. Shouldn't have been there.
    * Added SQLite::Dataset#explain. Returns an array of opcode hashes.
    * Specs for ConnectionPool.

    == Sequel Discussion List

    I've created a google group dedicated to Sequel. Youcan find it here:
    http://groups.google.com/group/sequel-talk

    == Sequel RDoc

    http://sequel.rubyforge.org
     
    Sharon Rosner, Apr 16, 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

    ANN: Sequel 0.0.20 Released

    Sharon Rosner, Apr 18, 2007, in forum: Ruby
    Replies:
    0
    Views:
    113
    Sharon Rosner
    Apr 18, 2007
  2. Sharon Rosner

    ANN: Sequel 0.1.0 Released

    Sharon Rosner, Apr 22, 2007, in forum: Ruby
    Replies:
    0
    Views:
    102
    Sharon Rosner
    Apr 22, 2007
  3. Sharon Rosner

    ANN: Sequel 0.1.2 Released

    Sharon Rosner, May 19, 2007, in forum: Ruby
    Replies:
    0
    Views:
    125
    Sharon Rosner
    May 19, 2007
  4. Sharon Rosner
    Replies:
    0
    Views:
    111
    Sharon Rosner
    May 20, 2007
  5. Sharon Rosner
    Replies:
    1
    Views:
    118
    Gregory Brown
    May 25, 2007
Loading...

Share This Page