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.08k stars 209 forks source link

Feature: supabase gen schema json #1715

Open d9k opened 11 months ago

d9k commented 11 months ago

I propose to add something like supabase gen schema json alongside with supabase gen types typescript because typescript types can't be reflected in runtime.

d9k commented 11 months ago

I was able to write script which parse JSON schema from generated types with @babel/parser and @babel/traverse (see also Babel plugin handbook)