]> 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)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 10 Mar 2015 18:19:18 +0000 (14:19 -0400)
commit6b108eea5219f06c4fe5c03ed97046221eeea9f7
tree7afe6af0c3c7e4c5e7b9643e5f236948b551c8dc
parent79025e272085dbeb2071d830b570ac4285584a61
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.

(cherry picked from commit 30ce7e93f4068b00ced0db785fdd578dc8a45975)
lib/sqlalchemy/dialects/sqlite/base.py