Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type generation not including my specified schema for helper types #3146

Open
GeekyMonkey opened this issue Feb 14, 2025 · 1 comment
Open

Comments

@GeekyMonkey
Copy link

Describe the bug
When I generate types, it does the basic processing of the schema I specified, but the helper types are only generated for the "public" schema, which is blank in my case.

To Reproduce

  • Have a database with no tables in the public schema
  • Create a "robo" schema with one table
  • Run the gentypes command supabase gen types typescript --schema robo --local > supabase/dbTypes.ts

Expected behavior
in my dbTypes.ts I should have helper types based on the specified "robo" schema.

Screenshots

Image

The only schema in the database is "robo", but the only helpers are created from the "public" schema

System information

  • Version of OS: Windows 11
  • Version of CLI: 2.12.1
  • Version of Docker: [e.g. v25.0.3]
  • Versions of services:
    SERVICE IMAGE │ LOCAL │ LINKED
    ─────────────────────────┼──────────────────┼─────────────
    supabase/postgres │ 15.6.1.121 │ 15.6.1.121
    supabase/gotrue │ v2.168.0 │ v2.168.0
    postgrest/postgrest │ v12.2.3 │ v12.2.3
    supabase/realtime │ v2.34.7 │ -
    supabase/storage-api │ v1.17.1 │ v1.17.1
    supabase/edge-runtime │ v1.67.0 │ -
    supabase/studio │ 20250113-83c9420 │ -
    supabase/postgres-meta │ v0.84.2 │ -
    supabase/logflare │ 1.4.0 │ -
    supabase/supavisor │ 1.1.56 │ -

Additional context
If applicable, add any other context about the problem here.

  • Version of supabase-js: 2.48.1
  • Version of Node.js: 20.18.2
@GeekyMonkey
Copy link
Author

See also #3061

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant