Skip to content

fix(sql-drizzle): support SQLite batches#6446

Draft
coyaSONG wants to merge 1 commit into
Effect-TS:v3from
coyaSONG:agent/fix-sqlite-drizzle-batch
Draft

fix(sql-drizzle): support SQLite batches#6446
coyaSONG wants to merge 1 commit into
Effect-TS:v3from
coyaSONG:agent/fix-sqlite-drizzle-batch

Conversation

@coyaSONG

Copy link
Copy Markdown
Contributor

Type

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

Description

The SQLite Drizzle integration supplied only Drizzle's single-query callback. As a result, db.batch() attempted to call an undefined batch callback and failed with TypeError: this.batchCLient is not a function.

This change supplies an ordered batch callback to both SQLite constructors. Each query is executed through the existing Effect SQL callback, preserving query order and the existing result mapping. A regression test covers an insert followed by a select in one batch.

Impact

SQLite-backed @effect/sql-drizzle users can use db.batch() without the runtime failure.

Related

Validation

  • corepack pnpm --filter @effect/sql-drizzle test -- --run test/Sqlite.test.ts (13 tests passed)
  • corepack pnpm lint-fix
  • corepack pnpm check
  • corepack pnpm build
  • corepack pnpm docgen

@github-project-automation github-project-automation Bot moved this to Discussion Ongoing in PR Backlog Jul 17, 2026
@changeset-bot

changeset-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: aabb49b

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

@IMax153 IMax153 added the 3.0 Used for issues, pull requests, etc. that are relevant for the `v3` branch targeting Effect v3. label Jul 17, 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

Status: Discussion Ongoing

Development

Successfully merging this pull request may close these issues.

2 participants