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 creates the
sequence for you:

table1 = Table('table1', metadata,
    Column('id', types.Integer, primary_key=True)
    )

it will auto increment with a step of 1.

Florent.

--~--~---------~--~----~------------~-------~--~----~
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 email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to