Skip to content

Comments

fix(sql-drizzle): allow $count to be yielded as an Effect#6068

Open
vinicius507 wants to merge 4 commits intoEffect-TS:mainfrom
vinicius507:fix/sql-drizzle-yield-count
Open

fix(sql-drizzle): allow $count to be yielded as an Effect#6068
vinicius507 wants to merge 4 commits intoEffect-TS:mainfrom
vinicius507:fix/sql-drizzle-yield-count

Conversation

@vinicius507
Copy link

Type

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

Patches drizzle's *CountBuilder so $count can be yielded as an Effect.

Related

@github-project-automation github-project-automation bot moved this to Discussion Ongoing in PR Backlog Feb 16, 2026
@changeset-bot
Copy link

changeset-bot bot commented Feb 16, 2026

🦋 Changeset detected

Latest commit: 1a6c87d

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-drizzle 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

@vinicius507
Copy link
Author

There seems to be an issue with MySql. I'm turning this into a draft until I fix this.

@vinicius507 vinicius507 marked this pull request as draft February 16, 2026 20:20
Always wrap raw statement results in an array for the execute
callback, fixing MySqlSession.count() which expects res[0][0]
nesting.
@vinicius507 vinicius507 marked this pull request as ready for review February 16, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Discussion Ongoing

Development

Successfully merging this pull request may close these issues.

@effect/sql-drizzle: cannot yield $count, value is not iterable

1 participant