Skip to content

Reuse identical parameters in supported dialects#1713

Open
Eyal-Shalev wants to merge 1 commit intokysely-org:masterfrom
Eyal-Shalev:reuse-identical-parameters
Open

Reuse identical parameters in supported dialects#1713
Eyal-Shalev wants to merge 1 commit intokysely-org:masterfrom
Eyal-Shalev:reuse-identical-parameters

Conversation

@Eyal-Shalev
Copy link
Copy Markdown

Closes #1387

Updated DefaultQueryCompiler.appendValue to try searching for existing parameter placeholder before adding new parameters.

getExistingParameterPlaceholder can be overridden to update the placeholder syntax or to disable the functionality (sqlite and mysql don't support this)

Added a test to verify it works correctly

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 19, 2026

@Eyal-Shalev is attempting to deploy a commit to the Kysely Team Team on Vercel.

A member of the Team first needs to authorize it.

@Eyal-Shalev Eyal-Shalev marked this pull request as draft February 19, 2026 23:46
@Eyal-Shalev Eyal-Shalev force-pushed the reuse-identical-parameters branch from 8cf28cf to eb188d8 Compare February 19, 2026 23:52
@Eyal-Shalev Eyal-Shalev marked this pull request as ready for review February 19, 2026 23:52
@Eyal-Shalev Eyal-Shalev changed the title Reuse identical parameters Reuse identical parameters in supported dialects Feb 20, 2026
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.

Parameter Reuse Optimization for SQL Template Literals

1 participant