Permalink
Commits on Apr 30, 2008
  1. Add descriptions to all rake tasks, and a top level rake release task…

    jeremyevans committed Apr 30, 2008
    …, plus some refactoring
  2. Bump version to 1.5.1

    jeremyevans committed Apr 30, 2008
  3. Have Dataset#graph give a nil value instead of a hash with all nil va…

    jeremyevans committed Apr 30, 2008
    …lues if no matching rows exist in the graphed table
    
    Before:
    
      # If the first artist doesn't have any albums
      DB[:artists].graph(:albums, :artist_id=>:id).first
      => {:artists=>{:id=>artists.id, :name=>artists.name}, :albums=>{:id=>nil, :name=>nil, :artist_id=>nil}}
    
    After:
    
      # If the first artist doesn't have any albums
      DB[:artists].graph(:albums, :artist_id=>:id).first
      => {:artists=>{:id=>artists.id, :name=>artists.name}, :albums=>nil}
    
    This also fixes eager_graph, so that you don't end up with a single empty associated object in
    *_to_many associations (that is shared by all objects without an associated record in the database).
    
    Before:
    
      # If the first two artists don't have any albums
      Artist.eager_graph(:albums).all.first.albums
      => [#<Album @values={:id=>nil, :name=>nil, :artist_id=>nil}>]
      Artist.eager_graph(:albums).all[0].albums.first.object_id == \
       Artist.eager_graph(:albums).all[1].albums.first.object_id
      => true
    
    After:
    
      # If the first two artists don't have any albums
      Artist.eager_graph(:albums).all[0].albums
      => []
      Artist.eager_graph(:albums).all[1].albums
      => []
    
    This also fixes eager_graph for many_to_one associations, in that if the associated record doesn't
    exist, an empty (and again, shared) item is not used.
    
    Before:
    
      # If the first two albums don't have an artist
      Album.eager_graph(:artists).all.first.artist
      => [#<Artist @values={:id=>nil, :name=>nil}>]
      Album.eager_graph(:artists).all[0].artist.object_id == \
       Album.eager_graph(:artists).all[1].artist.object_id
      => true
    
    After:
    
      # If the first two albums don't have an artist
      Album.eager_graph(:artists).all[0].artist
      => nil
      Album.eager_graph(:artists).all[1].artist
      => nil
Commits on Apr 29, 2008
  1. Bump versions to 1.5.0

    jeremyevans committed Apr 29, 2008
  2. In the RDoc, give an example of .eager being used with filters, and d…

    jeremyevans committed Apr 29, 2008
    …iscuss eager loading on limited datasets
Commits on Apr 28, 2008
  1. Revert "add support for using memcached gem with sequel for caching"

    tmm1 committed Apr 28, 2008
    This reverts commit 2668ab0.
    
    Conflicts:
    
    	sequel/CHANGELOG
  2. Revert "rescue errors when expiring cached items"

    tmm1 committed Apr 28, 2008
    This reverts commit 47a7044.
  3. Revert "clean up Memcached error handling"

    tmm1 committed Apr 28, 2008
    This reverts commit c539bd1.
  4. In Model#set_with_params assume symbol keys are valid columns if the …

    jeremyevans committed Apr 28, 2008
    …columns for the model have not been set
  5. Merge master changes into Inviz branch

    jeremyevans committed Apr 28, 2008
    Merge branch 'master' into myinviz1
Commits on Apr 25, 2008
  1. Few tweaks to validations.rb

    Inviz committed Apr 25, 2008
Commits on Apr 24, 2008
Commits on Apr 23, 2008
  1. Various doc fixes

    jeremyevans committed Apr 23, 2008
    Move the main Sequel::Model RDoc from sequel_model.rb to sequel/README
    Change documentation examples that use Numeric time extensions to not require them
    Add an example of graphing to the sequel_core/README
    Add examples of eager loading to the sequel/README
  2. Document that calling Sequel::ODBC::Database#execute manually require…

    jeremyevans committed Apr 23, 2008
    …s you to manually drop the returned object (fixes #217)
  3. Various small doc fixes

    jeremyevans committed Apr 23, 2008
    Add dataset graphing to the README
    nodoc all of the deprecated methods
    Make Database.set_adapter_scheme private
    Make Dataset#expression_list private
    Document the Sequel::Deprecation module and methods
Commits on Apr 22, 2008