[sqlalchemy] Re: from a db schema to sqlalchemy tables

2008-10-30 Thread Empty
There's this: http://www.sqlalchemy.org/trac/wiki/UsageRecipes/AutoCode Which will take the schema directly and create the classes. May not work for you. Michael On Thu, Oct 30, 2008 at 12:14 PM, Michele Simionato [EMAIL PROTECTED] wrote: Is there some utility to convert a schema file

[sqlalchemy] Re: from a db schema to sqlalchemy tables

2008-10-30 Thread Michael Bayer
we dont parse DDL but instead only read Table objects from the database directly, using reflection via the autoload=True flag. If you had a DDL file, you could load this into a database to be reflected, else if you already have a live database, you can reflect straight from that. docs

[sqlalchemy] Re: from a db schema to sqlalchemy tables

2008-10-30 Thread Michael Bayer
On Oct 30, 2008, at 2:45 PM, Michele Simionato wrote: On Oct 30, 7:18 pm, Michael Bayer [EMAIL PROTECTED] wrote: we dont parse DDL but instead only read Table objects from the database directly, using reflection via the autoload=True flag. If you had a DDL file, you could load this into a