okay. first cut of metadatadiff:
http://dbcook.svn.sourceforge.net/viewvc/*checkout*/dbcook/trunk/metadatadiff.py

... test changes:
    class Address( o2r.Base):
        size  = Text()          #change type
        place = Text2()         #change type-details
    class Employee( o2r.Base):  #inheritance gone - was off Person
        jobe = Text()           #change name
    class Employee2( Person):   #new class
        lazy = Text()


$ python metadatadiff.py
=========
DiffMetaData : None
  tables ins [Table('Employee2',.....)]
  tables sub [<DiffTable instance >, <DiffTable instance >]
  DiffTable : Employee
    columns ins [Column( 'jobe', String, )]
    columns del [Column( 'job', String, )]
    columns sub [<DiffColumn instance >]
    DiffColumn : db_id
      foreign_keys del [ForeignKey('Person.db_id')]
  DiffTable : Address
    columns sub [<DiffColumn instance >, <DiffColumn instance >]
    DiffColumn : place
      data {'type': (String(length=None,convert_unicode=False),
                     String(length=30,convert_unicode=False))}
    DiffColumn : size
      data {'type': (Integer(),
                     String(length=None,convert_unicode=False))}

not too bad...
ciao
svil

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to