Skip to content

Test sqlfu against real celld - #154

Draft
mmkal wants to merge 3 commits into
mainfrom
celld-runtime-testing
Draft

Test sqlfu against real celld#154
mmkal wants to merge 3 commits into
mainfrom
celld-runtime-testing

Conversation

@mmkal

@mmkal mmkal commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • runs a sqlfu inline Durable Object app in real celld v0.1.0
  • proves Worker routing, migrations, bound inserts, typed query modes, and per-name SQLite isolation
  • adds a dedicated CI job using pinned celld, MinIO server, and MinIO client binaries

Runtime scope

celld currently supports module Workers and SQLite-backed Durable Objects. Its compatibility reference lists D1 as planned, so this PR does not claim or approximate D1 support.

Before / after

Before: sqlfu Durable Object coverage ran through Miniflare, leaving compatibility with the new self-hosted celld runtime unproven.

After, the same public sqlfu surface runs inside celld:

POST /alpha/posts -> {"rowsAffected":1}
GET  /alpha/posts -> [{"slug":"hello","title":"Hello from celld"}]
GET  /beta/posts  -> [{"slug":"other","title":"Another cell"}]

The distinct responses prove the Worker routes to separate named Durable Object cells, while each cell applies the inline sqlfu migration and executes generated-mode query wrappers against its own SQLite storage.

Verification

  • real celld compatibility spec
  • existing Durable Object suite: 14 tests
  • sqlfu typecheck
  • ESLint and formatting checks

Coding agent session: 019fdb5d-9f22-7c90-b4ec-7ee4a9ec3b57

Package size — packed 280.6 kB (no change)

Package size

main this PR Δ
packed 280.6 kB 280.6 kB 0
unpacked 1.12 MB 1.12 MB 0
files 226 226 0

dist/vendor/*.js bundles

main this PR Δ
vendor/sha256.js 4.3 kB 4.3 kB 0
vendor/sql-formatter/*.js 94.5 kB 94.5 kB 0
vendor/sqlfu-sqlite-parser/*.js 17.2 kB 17.2 kB 0
vendor/standard-schema/*.js 2.8 kB 2.8 kB 0
vendor/typesql/*.js 134.9 kB 134.9 kB 0

Measured with npm pack --dry-run --json on sqlfu (0.0.0-dev on main vs 0.0.0-dev on this PR).

@pkg-pr-new

pkg-pr-new Bot commented Aug 7, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/sqlfu@154

commit: 868c579

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.

1 participant