google / google/python-spanner-orm
Make migrations a bit less tedious to write.
未关闭
- 主要语言
- Python
- 星标
- 41
- 派生
- 17
- PR 合并指标
- 30 天内没有已合并 PR
描述
Ideas:
1. It seems like many `SchemaUpdate` subclasses have inherent inverses, e.g., it should be easy to derive a `DropTable` from a `CreateTable`. Could we simplify `upgrade()` and `downgrade()` into a single function that returns objects that can process both directions of changes?
2. Maybe add a `CompoundUpdate` or similar that applies multiple updates in a single migration. This might be more complex than it seems though if the migration executor and/or migration status information assume that migrations are atomic.
贡献指南
评估
这个 Issue 还没有评估数据。