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 are here:

http://www.sqlalchemy.org/docs/05/metadata.html#metadata_tables_reflecting

but also, this seems to be missing from the docs there, metadata can  
reflect the entire database using:

metadata.reflect(bind=someengine)


On Oct 30, 2008, at 12:14 PM, Michele Simionato wrote:

>
> Is there some utility to convert a schema file (obtained by dumping
> the schema of a pre-existing database) into a Python file containing
> the corresponding SQLAlchemy table definitions?
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
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