From: Mike Bayer Date: Fri, 18 Dec 2009 21:12:18 +0000 (+0000) Subject: and the docs... X-Git-Tag: rel_0_6beta1~120 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68da6c5e1d66b9d39f020a20c11696703ae2bc23;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git and the docs... --- diff --git a/lib/sqlalchemy/dialects/sqlite/base.py b/lib/sqlalchemy/dialects/sqlite/base.py index 27fc9b4627..7f11765c1b 100644 --- a/lib/sqlalchemy/dialects/sqlite/base.py +++ b/lib/sqlalchemy/dialects/sqlite/base.py @@ -34,10 +34,13 @@ Two things to note: one column, if the table has a composite (i.e. multi-column) primary key. This is regardless of the AUTOINCREMENT keyword being present or not. -To specifically render the AUTOINCREMENT keyword on a SQLAlchemy column -when rendering DDL, add the flag ``sqlite_autoincrement=True``:: +To specifically render the AUTOINCREMENT keyword on the primary key +column when rendering DDL, add the flag ``sqlite_autoincrement=True`` +to the Table construct:: - Column('id', Integer, primary_key=True, sqlite_autoincrement=True) + Table('sometable', metadata, + Column('id', Integer, primary_key=True), + sqlite_autoincrement=True) """