FORGE-89: remote D1 feature probe (scripts/d1-feature-probe.ts) #733
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
gmackie/ForgeGraph!733
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "FORGE-89-d1-feature-probe"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
FORGE-89 (D1 Phase 4), step 4 of 5. Stacked on #721 (uses
schema-sqlite/ddl.ts); review the top commit.What
scripts/d1-feature-probe.tscreates a scratch D1 database, runs the SQL features and limits the D1 port depends on through a real remote binding (wranglergetPlatformProxywithremote: true, soprepare/bind/batchare the Worker binding's semantics, not the REST API's), prints a report, and deletes the database (--keepto keep it,--json out.jsonfor the raw results).Credentials: wrangler's own resolution, i.e. the local
wrangler login(OAuth with d1 + workers_scripts write), orCLOUDFLARE_API_TOKEN/CLOUDFLARE_ACCOUNT_IDexported from ForgeGraph's workspace Cloudflare integration (getCloudflareConfig). This run used the local wrangler login on account c07a7e704db1808e1fff91bed2b1cd49.Run:
pnpm exec tsx scripts/d1-feature-probe.tsfrom the repo root.Results against remote D1 (2026-10-12T06:12:44.007Z, scratch DB
fg-d1-probe-20261012061156, deleted afterwards:wrangler d1 listshows nofg-d1-probe-*)18/18 passed. Findings that matter for the port:
->>, partial and expression unique indexes,INSERT … SELECT max(seq)+1inside one batch (the FORGE-85 seq assignment), FKs with cascades, andPRAGMA defer_foreign_keysinside a batch (the Phase 5 copy tool's plan).🤖 Generated with Claude Code