summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/sqlite
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2009-12-18 21:12:18 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2009-12-18 21:12:18 +0000
commit68da6c5e1d66b9d39f020a20c11696703ae2bc23 (patch)
tree02d6c7a6a77aea8686f8c0d038cf498f53f1be10 /lib/sqlalchemy/dialects/sqlite
parent62b2fb87569c7bd7c72fde2f8f7933e3efc2629e (diff)
downloadsqlalchemy-68da6c5e1d66b9d39f020a20c11696703ae2bc23.tar.gz
and the docs...
Diffstat (limited to 'lib/sqlalchemy/dialects/sqlite')
-rw-r--r--lib/sqlalchemy/dialects/sqlite/base.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/sqlalchemy/dialects/sqlite/base.py b/lib/sqlalchemy/dialects/sqlite/base.py
index 27fc9b462..7f11765c1 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)
"""