Drop postgres requirement for easier adoption
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 55/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- bun, postgresql, sqlite, typescript
- 领域
- database
调研方向
Start with the existing Postgres adapter and the storageContract tests, then review how Bun's SQL handles SQLite transactions. Add a SQLite storage adapter for single-user use and ensure concurrent transactions are handled one at a time. Done means the adapter passes storageContract alongside the existing adapters.
由索引模型根据 Issue 内容生成。
描述
Awesome project! While it's in early stages I think this project is most likely to be used single player. With that said making a sqlite adapter I think would be worthwhile.
here's a rough plan from claude
Add a SQLite storage adapter for single-user local use. It seems to fit
the current design:
- One process already owns writes (the writer lease plus the global advisory
lock), which is SQLite's normal mode. - The Postgres adapter uses Bun's
SQL, which also acceptssqlite://URLs.
RETURNING,ON CONFLICT, JSON functions and BLOBs work there. storageContractalready runs against two adapters, so a third could be
proven against it.
The main gotcha: Bun's SQLite mode doesn't queue concurrent sql.begin()
calls, so the adapter would need to run transactions one at a time. With a
simple promise queue, 20 concurrent transactions all succeeded; without it,
19 failed.
- 主要语言
- TypeScript
- 星标
- 392
- 派生
- 22
- 平均合并
- 16 小时 56 分钟
- 30 天内合并 PR
- 298
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
githubnext/chopin 的其他 Issue
-
documentation triage/human-response
难度 2/5 1-3 小时 新手友好度 74/100
githubnext/chopin#149 · 3 条评论 ·
维护者通常 1 天内回复
-
Connector: make the local agent a durable, installable machine (`chopin` CLI, persisted pairing, service, reconnect)可能已有人在做 @lavaman131 于 1 天前认领。 未关闭
githubnext/chopin#523 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
enhancement triage/human-response
难度 5/5 一周以上 新手友好度 35/100
githubnext/chopin#165 ·
维护者通常 1 天内回复
-
enhancement triage/human-response
难度 5/5 一周以上 新手友好度 35/100
githubnext/chopin#164 ·
维护者通常 1 天内回复
-
triage/human-response
难度 5/5 一周以上 新手友好度 38/100
githubnext/chopin#163 ·
维护者通常 1 天内回复
查看 githubnext/chopin 的全部 Issue
相似的 Issue
-
documentation good first issue hacktoberfest help wanted
难度 2/5 1-3 小时 新手友好度 78/100
libredb/libredb-studio#1756 ·
维护者通常 1 天内回复
-
state:triage-needed
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
难度 1/5 1 小时以内 新手友好度 72/100
lingdojo/kana-dojo#32365 · 1 条评论 · 5 个 reaction ·
维护者通常 1 天内回复
-
friction
难度 2/5 1-3 小时 新手友好度 72/100
kentcdodds/kody#3706 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
copperheadhq/copperhead#378 ·
维护者通常 1 天内回复