[sqlalchemy] Re: Generating INTEGER PRIMARY KEY AUTOINCREMENT column in sqlite

2009-05-19 Thread Wichert Akkerman
Previously Werner F. Bruhin wrote: Hi Leonard, paniq303 wrote: Hello, how is the progress with this feature - how can I use it? My application strongly depends on AUTOINCREMENT being available. To explain: Without AUTOINCREMENT, a deleted primary key will be reassigned.

[sqlalchemy] Re: Generating INTEGER PRIMARY KEY AUTOINCREMENT column in sqlite

2009-05-17 Thread paniq303
Hello, how is the progress with this feature - how can I use it? My application strongly depends on AUTOINCREMENT being available. To explain: Without AUTOINCREMENT, a deleted primary key will be reassigned. As an example: three records are created, with ids 1, 2 and 3. Now the record with id

[sqlalchemy] Re: Generating INTEGER PRIMARY KEY AUTOINCREMENT column in sqlite

2009-05-17 Thread Michael Bayer
the correct patch would be just a slight modification of what's provided on ticket 1016, adding table.kwargs['sqlite_autoincrement'] == True to the checks provided. I would also remove all the len(pk.columns) == 1 and Integer checks since if the user is adding this flag they should know

[sqlalchemy] Re: Generating INTEGER PRIMARY KEY AUTOINCREMENT column in sqlite

2008-11-13 Thread Michael Bayer
As discussed in trac ticket #1016, we would need to add support to Column such that **kwargs with dialect names are parsed, such as sqlite_autoincrement=True. The ticket has been accepted and just needs someone to contribute a patch. We definitely are not going to link the existing