]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Support SQLite WITHOUT ROWID tables 5686/head
authorSean Anderson <seanga2@gmail.com>
Sat, 7 Nov 2020 17:13:05 +0000 (12:13 -0500)
committerSean Anderson <seanga2@gmail.com>
Sat, 7 Nov 2020 19:35:27 +0000 (14:35 -0500)
commit2b44782d1b3d858e31ce1ff8e08e197af37344d8
tree7a05061a54d822fa8540f79c44215a8293cc0d76
parentf5ed0f5d6e0526a4ee2f9f164b7da79de11a481e
Support SQLite WITHOUT ROWID tables

This adds support for creating tables WITHOUT ROWID in the SQLite
dialect. WITHOUT ROWID tables were introduced in SQLite version 3.8.2
(2013-12-06). They do not use an implicit rowid column as the primary
key. This may result in space and performance savings for tables without
INTEGER primary keys and tables with composite primary keys. For more
information about this feature, see the sqlite documentation [1].

[1] https://www.sqlite.org/withoutrowid.html

Fixes: #5685
lib/sqlalchemy/dialects/sqlite/base.py
test/dialect/test_sqlite.py