Skip to content

Update pluggable-db-adapter plan: PRAGMA status + better-sqlite3 E2E test - #43

Merged
chtitux merged 1 commit into
mainfrom
update-adapter-plan
Apr 20, 2026
Merged

Update pluggable-db-adapter plan: PRAGMA status + better-sqlite3 E2E test#43
chtitux merged 1 commit into
mainfrom
update-adapter-plan

Conversation

@chtitux

@chtitux chtitux commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Documentation-only update to documents/pluggable-db-adapter.md.

  • PRAGMAs section now reflects PR Optimize GTFS ingestion (~40% faster) and drop bulk-load PRAGMAs #42 as merged/verified (grep -ri PRAGMA src/ returns zero matches). Previously the doc described PRAGMA removal as a future prerequisite.
  • Testing strategy gains an end-to-end test on BetterSqlite3Adapter. better-sqlite3 is pure Node (no simulator, no WASM toolchain) so it can run in CI alongside sql.js. Op-sqlite and expo-sqlite remain manual/local.
  • Phase 1 rollout: add better-sqlite3 + the E2E test as part of the initial refactor.
  • Phase 2 rollout: BetterSqlite3Adapter is promoted from copy-paste example to a CI-run reference, with the examples/ copy staying canonical for consumers.
  • New resolved decision Claude/create gtfs sqljs module 011 c up nn k ltuvz d dz xyz fy rm #7 records the "why better-sqlite3 for CI" rationale.

Test plan

  • Doc-only, no code touched — no test run needed.

🤖 Generated with Claude Code

…test

Two updates:

1. PRAGMAs section updated to reflect PR #42 as merged/verified
   (grep -ri PRAGMA src/ returns zero matches). Previously the doc
   framed PRAGMA removal as a future prerequisite; now it is done.

2. Testing strategy gains an end-to-end test on BetterSqlite3Adapter.
   better-sqlite3 is a pure Node install (no simulator, no WASM
   toolchain) so it can run in the same vitest invocation as the
   sql.js tests, giving CI coverage on at least one non-sql.js
   adapter without requiring RN-specific CI. Op-sqlite and
   expo-sqlite remain manual/local.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@chtitux
chtitux merged commit 0b8602f into main Apr 20, 2026
3 checks passed
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