1 个仓库
The process of converting high-level migration descriptions into raw SQL strings.
Distinct from SQL Export Generators: Focuses on rendering migration directives into SQL for auditing, rather than generating SQL from analysis data.
Explore 1 awesome GitHub repository matching data & databases · Migration Directive Rendering. Refine with filters or upvote what's useful.
Alembic 是一个用于 SQLAlchemy 的数据库模式版本控制系统和迁移工具。它通过版本化脚本管理数据库结构的增量更新,支持升级和降级,从而保持数据库与代码同步。 该系统利用有向无环图(DAG)进行迁移管理,支持非线性版本控制,包括跨多个根版本的分支和合并。它内置了自动模式差异对比工具,可将实时数据库模式与元数据对象进行比较,从而以编程方式生成迁移指令。 该工具提供事务性模式演进功能,确保更新的原子性并防止数据库部分损坏。其他功能包括将迁移指令转换为原始 SQL 字符串以进行审计,以及通过专用数据库表维护基于脚本的版本跟踪。
Converts high-level Python migration directives into raw SQL strings for auditing.