Closed sweatybridge closed 5 months ago
I just ran PG_META_GENERATE_TYPES_INCLUDED_SCHEMAS=openai PG_META_DB_URL=postgresql://postgres:postgres@127.0.0.1:54322/postgres npm run gen:types:typescript | xclip -sel clip
and it works for me, so I'm happy with this!
What kind of change does this PR introduce?
supersedes https://github.com/supabase/postgres-meta/pull/717
What is the current behavior?
If public schema is not requested, the generated type fails to compile.
What is the new behavior?
When
public
schema is not requested,Tables<'name'>
is now typed asunknown
.To use any non-public schema, pass in explicitly to
Tables<{ schema: 'private' }, 'name'>
.Additional context
Add any other context or screenshots.