Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Add `gen tanstack-db` command to the Supabase CLI

未关闭
#12 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
冷清
技术栈
typescript

调研方向

issue 中没有指定任何文件、测试或现有入口点。先定义 CLI UX 和生成的 collection module 结构,然后记录重新生成行为,以及围绕关系、复合键、schema 库和自定义 schema 的未决问题。

由索引模型根据 Issue 内容生成。

描述

enhancement ready-for-agent

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-db CLI UX.
  • Define the generated collection module shape.
  • Include table names, primary keys, row schemas, and supabaseCollectionOptions wiring.
  • 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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

supabase/tanstack-db 的其他 Issue

查看 supabase/tanstack-db 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。