Skip to content

Fix Kysely result plugins with Effect SQL clients - #8262

Open
Marve10s wants to merge 2 commits into
Effect-TS:v3from
Marve10s:fix/kysely-result-plugins
Open

Marve10s wants to merge 2 commits into
Effect-TS:v3from
Marve10s:fix/kysely-result-plugins

Conversation

@Marve10s

Copy link
Copy Markdown

Fixes #4944.

Queries executed through the Effect SQL client applied Kysely's query plugins but skipped their result transformations. For example, CamelCasePlugin generated snake_case SQL but left returned rows in snake_case too.

Apply result plugins in order with the original query ID after SQL execution. Preserve plugin scope across derived builders and callbacks, and keep execution on the existing SQL client so transactions retain their behavior. Plugin failures enter the SqlError channel.

@Marve10s
Marve10s requested a review from tim-smart as a code owner September 16, 2026 13:57
@changeset-bot

changeset-bot Bot commented Sep 16, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4153be1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@effect/sql-kysely Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 16, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-16T14:02:16.193905Z 697fc82 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@effect-janitor effect-janitor Bot added the 3.0 Used for issues, pull requests, etc. that are relevant for the `v3` branch targeting Effect v3. label Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.0 Used for issues, pull requests, etc. that are relevant for the `v3` branch targeting Effect v3.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant