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 models from database tables #240

Open
bryan-vh opened this issue Feb 10, 2024 · 2 comments · May be fixed by supabase/postgres-meta#779
Open

Generate models from database tables #240

bryan-vh opened this issue Feb 10, 2024 · 2 comments · May be fixed by supabase/postgres-meta#779
Labels
enhancement New feature or request

Comments

@bryan-vh
Copy link

Feature request

I'm wondering if it's possible to generate model types (preferably structs) from the database tables. Is there any effort to implement this or is assumed that API consumers will have to create their own models from scratch to mimic the tables on the backend?

@bryan-vh bryan-vh added the enhancement New feature or request label Feb 10, 2024
@grdsdev
Copy link
Collaborator

grdsdev commented Feb 12, 2024

Hi @bryan-vh,

We don't support this yet, but it is on the radar.

I'll keep the issue open, and post updates here once we have any.

Thank you!

@grdsdev
Copy link
Collaborator

grdsdev commented Jun 19, 2024

Quick update on this:

I'm working on a generator for Swift on supabase/postgres-meta#779, for now, it only generates plain Swift structs that can be used to encode/decode Postgres Response.

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

Successfully merging a pull request may close this issue.

2 participants