supabase / cli

Supabase CLI. Manage postgres migrations, run Supabase locally, deploy edge functions. Postgres backups. Generating types from your database schema.
https://supabase.com/docs/reference/cli/about
MIT License
1.07k stars 209 forks source link

Support tsrange in generated typescript types #1549

Closed pingiun closed 8 months ago

pingiun commented 1 year ago

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

Right now the cli generates a type of unknown for tsrange fields. It would be nice to get some information for rows that include a tsrange

Describe the solution you'd like

Some javascript type that nicely represents a range

Describe alternatives you've considered

Parsing the data manually, but this is error prone and annoying

Additional context

-

soedirgo commented 8 months ago

Closing as duplicate of https://github.com/supabase/cli/issues/531