From: Mike Bayer Date: Thu, 3 Jul 2014 15:34:51 +0000 (-0400) Subject: - add link to dialect docs for SQLite autoincrement from column autoincrement, X-Git-Tag: rel_1_0_0b1~362 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e4286079c760e9f8e3e76278b2a0c4d406a230d;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - add link to dialect docs for SQLite autoincrement from column autoincrement, fixes #3110 --- diff --git a/lib/sqlalchemy/dialects/sqlite/base.py b/lib/sqlalchemy/dialects/sqlite/base.py index de8b01e6f2..9474d6ffc2 100644 --- a/lib/sqlalchemy/dialects/sqlite/base.py +++ b/lib/sqlalchemy/dialects/sqlite/base.py @@ -22,8 +22,10 @@ These types represent dates and times as ISO formatted strings, which also nicely support ordering. There's no reliance on typical "libc" internals for these functions so historical dates are fully supported. -Auto Incrementing Behavior --------------------------- +.. _sqlite_autoincrement: + +SQLite Auto Incrementing Behavior +---------------------------------- Background on SQLite's autoincrement is at: http://sqlite.org/autoinc.html diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py index 121f6da77d..f489a7b1d4 100644 --- a/lib/sqlalchemy/sql/schema.py +++ b/lib/sqlalchemy/sql/schema.py @@ -864,8 +864,11 @@ class Column(SchemaItem, ColumnClause): SERIAL on Postgresql, and IDENTITY on MS-SQL. It does *not* issue AUTOINCREMENT for SQLite since this is a special SQLite flag that is not required for autoincrementing - behavior. See the SQLite dialect documentation for - information on SQLite's AUTOINCREMENT. + behavior. + + .. seealso:: + + :ref:`sqlite_autoincrement` * The column will be considered to be available as cursor.lastrowid or equivalent, for those dialects which