]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- add link to dialect docs for SQLite autoincrement from column autoincrement,
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 3 Jul 2014 15:34:51 +0000 (11:34 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 3 Jul 2014 15:34:51 +0000 (11:34 -0400)
fixes #3110

lib/sqlalchemy/dialects/sqlite/base.py
lib/sqlalchemy/sql/schema.py

index de8b01e6f2712129e4f9fa4a48fc0c799aac6bce..9474d6ffc29b7522b22c03c1f04073c19808aaca 100644 (file)
@@ -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
 
index 121f6da77ddde5d199621b7fb18165a06d775afb..f489a7b1d4c0c44a90bbd69931b3c88fd19f62b5 100644 (file)
@@ -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