|
|
|
|
|
by jph
1154 days ago
|
|
Good article. By describing the workarounds, the article highlights the need for a SQL declarative table statement, something akin to `DECLARE TABLE`. The DECLARE TABLE statement could list the expected fields, then the SQL engine could create as needed, or alter as needed. |
|
Personally, I’m happy with declaring my tables in sqlalchemy and having alembic do the grunt work. Allows me to work in the declarative way you describe while also making it easy to handle the data migration component.