Replies: 1 comment 2 replies
-
I'd favor a cookbook recipe in the docs for this. As a builtin command for alembic it's out of scope. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Add a command to
alembic
CLI that will allow to save the current database structure to a SQL file, or one squashed migration, which will work similar to the so-called database schema / structure dump from Ruby on Rails / Active Record framework. The purpose of this is to generate a single file that allows for:It could be something like:
alembic dump
oralembic structure > file.sql
It would be such a "convenience method", wrapping around the standard database dump tool, but much easier to use (alembic is already preconfigured to connect to the appropriate database, it would also use proper "dumper" depending on the database engine type).
Beta Was this translation helpful? Give feedback.
All reactions