]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Partial index support with sqlite dialects.
authorKai Groner <kai@gronr.com>
Mon, 26 Jan 2015 19:49:40 +0000 (14:49 -0500)
committerKai Groner <kai@gronr.com>
Mon, 26 Jan 2015 19:50:24 +0000 (14:50 -0500)
commit30ce7e93f4068b00ced0db785fdd578dc8a45975
tree173c52b8edca255cdb4482ece8c10933fa4b4f16
parent4a42bd5a2cba23782df7b6f98cadb7382d22498e
Partial index support with sqlite dialects.

From https://www.sqlite.org/partialindex.html
> Partial indexes have been supported in SQLite since version 3.8.0.

Reflection does not expose the predicate of partial indexes.  The
postgresql dialect does detect such indexes and issue a warning.  I
looked into matching this level of support, but the sqlite pragma
index_info does not expose the predicate.  Getting this data would
probably require parsing the CREATE INDEX statement from sqlite_master.
lib/sqlalchemy/dialects/sqlite/base.py