Skip to content

Include database comments in generated types #839

Open
@profiluefter

Description

@profiluefter

Feature request

Is your feature request related to a problem? Please describe.

My database schema has comments on every table an some columns. It would be nice if those comments could be included in the generated TypeScript types so that they will be displayed by the IDE.

Describe the solution you'd like

The supabase-cli should include comments in the generated TypeScipt interface.

Describe alternatives you've considered

I'm currently not yet using supabase-js V2 so I'm using an OpenAPI TypeScript generator from the definition by PostgREST. That definition includes comments and the generator includes them in the types.

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions