[sqlalchemy] Re: Problems with Sequence on PostgreSQL.

2007-10-05 Thread Florent Aide
On 10/5/07, Gustavo Schneider [EMAIL PROTECTED] wrote: Hi all SQLAlchemists, Hi, [...] The code: code table1 = Table('table1', metadata, Column('id', types.Integer, Sequence('table1_id_seq'), primary_key=True) ) /code When using postgresql you can have only this code and it

[sqlalchemy] Re: Problems with Sequence on PostgreSQL.

2007-10-05 Thread Gustavo Schneider
Thank you Florent... Schneider On 10/5/07, Florent Aide [EMAIL PROTECTED] wrote: When using postgresql you can have only this code and it creates the sequence for you: table1 = Table('table1', metadata, Column('id', types.Integer, primary_key=True) ) it will auto increment with