[sqlalchemy] from a sqlalchemy table to the corresponding CREATE TABLE sql code

2009-08-26 Thread Michele Simionato
A part from setting echo=True and monitoring the result of .create_all, is there a more elegant way to extract the SQL creation code from a table object? TIA, M.S. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[sqlalchemy] Re: from a sqlalchemy table to the corresponding CREATE TABLE sql code

2009-08-26 Thread Michele Simionato
On Aug 26, 3:20 pm, King Simon-NFHD78 simon.k...@motorola.com wrote: -Original Message- From: sqlalchemy@googlegroups.com [mailto:sqlalch...@googlegroups.com] On Behalf Of Michele Simionato Sent: 26 August 2009 13:40 To: sqlalchemy Subject: [sqlalchemy] from a sqlalchemy

[sqlalchemy] Re: renaming columns

2009-08-17 Thread Michele Simionato
On Aug 17, 5:31 pm, King Simon-NFHD78 simon.k...@motorola.com wrote: I think you want something like column.label('newcol'). For example:   import sqlalchemy as sa   print sa.select([atable.c.acolumn.label('newcol')]) Yep, exactly! --~--~-~--~~~---~--~~ You

[sqlalchemy] from a db schema to sqlalchemy tables

2008-10-30 Thread Michele Simionato
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

[sqlalchemy] copy tables from one database to another

2006-11-02 Thread Michele Simionato
constraints. Thanks for your help, Michele Simionato --~--~-~--~~~---~--~~ 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