Add an option to skip partitions on type generation

Open
#6,292 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
postgresql, typescript
Domain
cli, databases

Research direction

Start at the supabase gen types CLI entry point and trace how partitioned tables are included in generated types. Add the option described in the issue, then verify that type generation omits partition types while retaining the parent table types.

Written by the indexing model from the issue text.

Description

✨ Feature supabase/cli
Existing issues
  • I have searched the existing issues.
Affected area

Database

Problem to solve

When using partitioned tables, supabase gen types generates separate types for each partition. When there are many partitions, this causes too many unnecessary types.

Proposed solution

An option like --skip-partitions that would skip partitions would be very useful.

Alternatives considered

No response

Additional context

No response

Dominant language
TypeScript
Stars
2.4k
Forks
523
Avg merge
20h 47m
Merged PRs (30d)
243

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from supabase/cli

All issues in supabase/cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.