Permalink
Switch branches/tags
Nothing to show
Commits on Sep 20, 2010
  1. Unified unique constraint/index manipulation API draft

    snusnu committed Sep 20, 2010
    I think unique indexes can be considered to be an
    implementation detail for the greater concept of
    enforcing unique constraints.
    
    do-schema should properly construct unique indexes
    when a unique constraint is specified and when the
    underlying database engine doesn't do so itself, if
    that's even the case for any of the engines we want
    to support.
    
    I'm still not entirely sure if having a UniqueIndex
    class representing that concept, is necessary to
    have in do-schema in the first place.
Commits on Sep 19, 2010
  1. Fixed a typo in the API draft

    snusnu committed Sep 19, 2010
Commits on Sep 18, 2010
Commits on Sep 17, 2010
Commits on Aug 31, 2010
Commits on Aug 30, 2010
Commits on Aug 29, 2010
  1. Removed commented duck typing checks from Equalizable

    snusnu committed Aug 29, 2010
    We probably won't be relying on duck typing for those
    integral objects anyway. Also, it's easy enough to
    add back later because the specs will remind us to do
    so.
  2. DataObjects::Schema::Set now uses [] internally

    snusnu committed Aug 29, 2010
    Since our Set is immutable, we need to check for
    set semantics when deciding wether to return a new
    instance or self before any "mutating" operation.
    Using a ::Set internally, would essentially duplicate
    this check for every call to #<<.
    
    Also, since do-schema mostly deals with small sized
    arrays anyway, using an Array internally might even
    be beneficial for performance because of avoiding
    potential hashing overhead when using ::Set.
Commits on Aug 28, 2010
  1. Extracted DataObjects::Schema::Collection (soon Set)

    snusnu committed Aug 24, 2010
    Collection is the base class used for
    
      DataObjects::Schema::Tables
      DataObjects::Schema::Columns
      DataObjects::Schema::OrderedSet
    
    The Collection currently uses a (hardcoded)
    Set class as its internal storage, since all
    so far discovered collection classes need
    Set semantics anyway. This will change very
    soon and Collection will probably be renamed
    to
    
      DataObjects::Schema::Set
    
    and an Array will be used as container.
    
    Collection now has a set of shared specs
    that are used by the concrete subclasses.
Commits on Aug 23, 2010
Commits on Aug 21, 2010
  1. No code is better code for now

    snusnu committed Aug 21, 2010
  2. Minor README formatting

    snusnu committed Aug 21, 2010