Skip to content

explain query plan method for statements - #19

Merged
tantaman merged 3 commits into
mainfrom
mlaw/explain
Dec 5, 2025
Merged

explain query plan method for statements#19
tantaman merged 3 commits into
mainfrom
mlaw/explain

Conversation

@tantaman

@tantaman tantaman commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

better-sqlite3 forces all statements to have their parameters bound before being run.

explain query plan does not need to have bound params. Add an explicit method (stmt.explainQueryPlan) that allows running without binding params.

We have been injecting random data into bind slots when running analyze query -- better to just keep the slots empty.

@tantaman
tantaman merged commit 6b5cbc2 into main Dec 5, 2025
25 checks passed
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.

1 participant