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

Does Goose support exporting the final SQL schema? #793

Closed
ZhengXinwei-F opened this issue Jul 17, 2024 · 2 comments
Closed

Does Goose support exporting the final SQL schema? #793

ZhengXinwei-F opened this issue Jul 17, 2024 · 2 comments

Comments

@ZhengXinwei-F
Copy link

ZhengXinwei-F commented Jul 17, 2024

I am considering using Goose for incremental database migrations.

One key requirement is the ability to export the final SQL schema, making it easier to verify the resulting database schema without directly exporting from the database.

If Goose does not support this feature, I would consider applying all migrations to a test database and exporting the schema from there.

I am looking forward to your response and appreciate any guidance you can provide. Any further discussions or suggestions can be discussed here.

@ZhengXinwei-F
Copy link
Author

/label support

@mfridman
Copy link
Collaborator

mfridman commented Aug 14, 2024

Not at the moment, I've been experimenting with a command to wrap pg_dump, but haven't made much progress. #459

This gets even trickier because we'd need to implement this for most or all databases we support. And as that number goes up the maintenance burden increases.

Most users typically apply all migrations and then use a dedicated tool, like pg_dump for postgres, to dump the schema.

There's an existing issue #278 tracking this request, so going to close this for now.

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