Skip to content

Add automatic query plans with the .eqp command - #280

Open
Boulea7 wants to merge 1 commit into
dbcli:mainfrom
Boulea7:feat/eqp-query-plans
Open

Boulea7 wants to merge 1 commit into
dbcli:mainfrom
Boulea7:feat/eqp-query-plans

Conversation

@Boulea7

@Boulea7 Boulea7 commented Nov 30, 2026

Copy link
Copy Markdown

Description

.eqp on prints SQLite's plan before running each statement. .eqp off restores ordinary output. Each LiteCLI session has its own setting, and both commands work in the prompt and in SQL scripts.

For example, after CREATE TABLE items(value);, enable .eqp on and run SELECT count(*) FROM items;. Its plan precedes the result.

QUERY PLAN
`--SCAN items
count(*)
0

The tests cover a correlated subquery, the two command modes, and an insert that must execute exactly once. I ran the suite with both Python's SQLite module and SQLean. Both passed. The current type checker reports the same three errors and two warnings on the base commit and this branch.

Fixes #144.

Checklist

  • I've added this contribution to the CHANGELOG.md file.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support .eqp like in sqlite3

1 participant