]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
and the docs...
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 18 Dec 2009 21:12:18 +0000 (21:12 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 18 Dec 2009 21:12:18 +0000 (21:12 +0000)
lib/sqlalchemy/dialects/sqlite/base.py

index 27fc9b462759b52adf021050460784669839b27c..7f11765c1ba64b8d749552d56b2c3e19bf03499a 100644 (file)
@@ -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)
     
 """