feat: migrate var/tag store from JSONL to better-sqlite3 #68
Reference in New Issue
Block a user
Delete Branch "feat/60-sqlite-var-tag"
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?
What
Replace JSONL append-log var/tag stores with SQLite (better-sqlite3).
Why
JSONL loads entire file into memory on startup, linear scan for queries, append-only growth. SQLite gives indexed queries, WAL concurrency, and bounded file size (#60).
Changes
sqlite-store.ts— vars, var_history, tags tables (WAL mode, indexed)var-store.ts(old JSONL)openStore()now uses SQLite storeVerification
Clean build + 617/617 tests pass ✅
Closes #60
Code Review: PR #68
🔴 CRITICAL
%/_but noESCAPE '\\'in SQL🟡 WARNING
🔵 NIT
请修复 3 个 critical 后重新提交。
15/15 修复确认,LGTM 🍊✅