Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Apr 30, 2008
  1. Bump version to 1.5.1

    authored
  2. Have Dataset#graph give a nil value instead of a hash with all nil va…

    authored
    …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

    authored
  2. In the RDoc, give an example of .eager being used with filters, and d…

    authored
    …iscuss eager loading on limited datasets
Commits on Apr 28, 2008
  1. @tmm1
  2. @tmm1

    Revert "add support for using memcached gem with sequel for caching"

    tmm1 authored
    This reverts commit 2668ab0.
    
    Conflicts:
    
    	sequel/CHANGELOG
  3. @tmm1

    Revert "rescue errors when expiring cached items"

    tmm1 authored
    This reverts commit 47a7044.
  4. @tmm1
  5. @tmm1

    Revert "clean up Memcached error handling"

    tmm1 authored
    This reverts commit c539bd1.
  6. In Model#set_with_params assume symbol keys are valid columns if the …

    authored
    …columns for the model have not been set
  7. Merge master changes into Inviz branch

    authored
    Merge branch 'master' into myinviz1
Commits on Apr 25, 2008
  1. @Inviz

    Few tweaks to validations.rb

    Inviz authored
Commits on Apr 24, 2008
  1. @tmm1

    clean up Memcached error handling

    tmm1 authored
  2. @tmm1
  3. @tmm1
  4. @tmm1
  5. @tmm1
Commits on Apr 23, 2008
  1. Various doc fixes

    authored
    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…

    authored
    …s you to manually drop the returned object (fixes #217)
  3. Various small doc fixes

    authored
    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
Something went wrong with that request. Please try again.