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

generate dart types (classes) #807

Open
NeatFastro opened this issue Sep 24, 2024 · 1 comment
Open

generate dart types (classes) #807

NeatFastro opened this issue Sep 24, 2024 · 1 comment

Comments

@NeatFastro
Copy link

I want to use supabase with dart (flutter) apps and it would be cool to generate dart classes just like we can generate types/interfaces for typescript

Describe the solution you'd like
I want to run "supabase gen types dart --schema public" and it should print the dart classes with json serialization.

Describe alternatives you've considered
Currently considering to use the freezed and json_serializable packages to manually create and update the classes/types.

@sweatybridge sweatybridge transferred this issue from supabase/cli Sep 25, 2024
@sweatybridge
Copy link
Contributor

CLI uses postgres-meta for type generation. I've transferred your issue to that repo in case someone is happy to pick it up https://github.com/supabase/postgres-meta/tree/master/src/server/templates

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

2 participants