Skip to content

fix: D1 database core review findings #254

Backlog

Description

@i098

Problem

A second review of draft PR #249 (D1 database core, feat/d1-store) found 11 items in server/src/db.ts, db-d1.ts, sql-dialect.ts, migrate.ts, db-sqlite.ts and server/tests/support/database.ts. One is high: an in-transaction counter increment can lose an increment when an autocommit increment runs between its read and its commit.

Reproduction

Each item is proven by a failing test or a read of the cited lines on the PR branch. The per-item result is in the fix PR body.

Expected behavior

Real items are fixed on feat/d1-store. Items that are not real are recorded with evidence.

Environment and checks

Branch feat/d1-store. Checks: npx vitest run tests/db.test.ts tests/migrations.test.ts and npm run typecheck in server/. Not deployed; this issue stays open until D1 is deployed and tested.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions