Michael Bayer wrote:

On Mar 6, 2006, at 7:38 PM, Kapil Thangavelu wrote:

direction. it would need a table subclass and custom metaclass to get around the existing singleton table metaclass.


Or you could have two SchemaEngine objects, a "current" and a "previous version", one of which has the collection of current tables, the other has the previous collection of tables. since table changes should be compared at the full schema level (like SVN compares changesets).



i've been playing around with this and have generation of some kinds of change objects. what would be the best way to generate the sql ddl for these changesets? i'd like to take advantage of the sql generation and abstraction capabilities already in sa.

i'm thinking some sort of AlterClause subclassed from ClauseElement, and a Changeset that accepts a schema visitor to the contained alterclauses. and then modify the schema generator to process them.

sound good?

fwiw, i'm heading to a conference for the rest of the week, and won't have a chance to work on it till i come back.

kapil





-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to