On Tue, Nov 9, 2010 at 4:10 PM, Domingo Aguilera
<[email protected]> wrote:
> Werner,
>
> I am using kinterbasdb downloaded just few days ago.  Also I am using
> sqla 0.6.5 .
>
> I worked with  firebird rdbms engine several years ago but not from
> python.  This is the first time I am using firebird from python and
> from sqlalchemy  ( been using python since 2004 ).
>
> I have an app in which every table is created with declarative_base
> and in every engine I've tried, it was enough to write...
>
> id = Column( Integer,  primary_key = True )
>
> This caused every engine to use whatever is needed to have an
> "autoincrement" field.
>
> In the case of firebird+kinterbasdb it was necessary to add the
> Sequence in the argument of Column as ...
>
> id = Column( Integer, Sequence("whatever", optional = True ),
> primary_key = True )

This is documented here:
http://www.sqlalchemy.org/docs/orm/tutorial.html#define-and-create-a-table

-- 
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