Skip to content

SQLite: Support INDEXED BY and NOT INDEXED - #2687

Open
LucaCappelletti94 wants to merge 2 commits into
mainfrom
sqlite-indexed-by
Open

LucaCappelletti94 wants to merge 2 commits into
mainfrom
sqlite-indexed-by

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

Support SQLite’s INDEXED BY index_name and NOT INDEXED clauses in SELECT, UPDATE and DELETE, including SELECT * FROM t AS x INDEXED BY i. These clauses impose index-selection requirements, with INDEXED BY requiring the named index to be usable. See https://www.sqlite.org/lang_indexedby.html

SQLite enables parsing through Dialect::supports_indexed_by(). TableFactor::Table::index_directives holds a Vec<TableIndexDirective> covering MySQL’s index hints and SQLite’s index-selection requirements. This is a breaking API change for consumers of index_hints, and MySQL hints are wrapped in TableIndexDirective::MySql(TableIndexHints { .. }).

@codecov-commenter

codecov-commenter commented Oct 19, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.42857% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 81.30%. Comparing base (ada8314) to head (31a5379).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/ast/query.rs 88.88% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2687      +/-   ##
==========================================
+ Coverage   81.28%   81.30%   +0.02%     
==========================================
  Files          42       42              
  Lines       33920    33968      +48     
  Branches    33920    33968      +48     
==========================================
+ Hits        27571    27619      +48     
  Misses       2785     2785              
  Partials     3564     3564              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants