Add `gen tanstack-db` command to the Supabase CLI
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 冷清
- 技术栈
- typescript
调研方向
issue 中没有指定任何文件、测试或现有入口点。先定义 CLI UX 和生成的 collection module 结构,然后记录重新生成行为,以及围绕关系、复合键、schema 库和自定义 schema 的未决问题。
由索引模型根据 Issue 内容生成。
描述
What to build
Add a gen tanstack-db command to the Supabase CLI so users can generate TanStack DB collection definitions from their Supabase database schema instead of hand-writing table names, primary keys, schemas, and collection options.
The first version should define the CLI UX and generated output shape. It should focus on the common path: generating collection modules for exposed tables, including table names, primary keys, Standard Schema-compatible row schemas, and supabaseCollectionOptions wiring that users can import into their frontend app.
The issue should also decide how regeneration works. Generated files should be useful as a starting point without making it easy to accidentally overwrite user edits. Open questions include how to represent relationships, composite primary keys, schema libraries, custom schemas, and whether generated output should live beside existing Supabase type generation.
Acceptance criteria
- Define the intended
supabase gen tanstack-dbCLI UX. - Define the generated collection module shape.
- Include table names, primary keys, row schemas, and
supabaseCollectionOptionswiring. - Describe how regeneration avoids clobbering user edits.
- Document open questions or follow-up work for relationships, composite keys, and schema-library choices.
Blocked by
None - can start immediately.
- 主要语言
- TypeScript
- 星标
- 57
- 派生
- 6
- 平均合并
- 14 小时 28 分钟
- 30 天内合并 PR
- 4
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
supabase/tanstack-db 的其他 Issue
-
Investigate removing the dependency on Query DB Collection可能已有人在做 @dhruvxvaishnav 于 24 天前认领。 未关闭enhancement ready-for-agent
难度 5/5 一周以上 新手友好度 35/100
supabase/tanstack-db#11 · 1 条评论 ·
-
Investigate offline support with TanStack SQLite persistence and offline transactions可能已有人在做 @dhruvxvaishnav 于 32 天前认领。 未关闭enhancement ready-for-agent
难度 5/5 一周以上 新手友好度 35/100
supabase/tanstack-db#10 · 2 条评论 ·
-
enhancement ready-for-agent
难度 4/5 3-5 天 新手友好度 64/100
supabase/tanstack-db#8 ·
查看 supabase/tanstack-db 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
jbacalso24/mimry#459 · 1 条评论 ·
维护者通常 1 天内回复
-
architecture help wanted hive/claimed-by-architect origin/architect stage/030-pr-in-progress tech-debt
难度 2/5 1-3 小时 新手友好度 78/100
kubestellar/console#24422 · 1 条评论 ·
维护者通常 1 天内回复
-
area: backends type: docs
难度 1/5 1-3 小时 新手友好度 83/100
schlessera/brain-kit#2383 ·
维护者通常 1 天内回复
-
agent duplicate providers tool triaged
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复