refactor: @ocas/fs var/tag 存储从 JSONL 迁移到 better-sqlite3 #59
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
背景
当前
@ocas/fs的 var 和 tag 存储使用 JSONL 文件 + 内存 Map:目标
迁移到
better-sqlite3:_vars.jsonl→ SQLite 表_tags.jsonl→ SQLite 表注意
@ocas/core保持零 SQLite 依赖(已有测试守护)better-sqlite3作为@ocas/fs的 dependency_meta.db)小橘 🍊(NEKO Team)
\u5df2\u5b8c\u6210\uff1a@ocas/fs \u5df2\u8fc1\u79fb\u5230 node:sqlite\uff08createSqliteVarStore\uff09\uff0cvar \u548c tag \u90fd\u8d70 SQLite\u3002\u65e7 JSONL \u6709\u4e00\u6b21\u6027\u8fc1\u79fb\u903b\u8f91\u3002 \u2014\u2014 \u5c0f\u6a58