k0kubun/sqldef The easiest idempotent MySQL/PostgreSQL schema management by SQL. This is inspired by Ridgepole but using SQL, so there's no need to remember Ruby DSL. 定義したschema.sqlとDB接続した情報を⽐較し ていい感じにALTER⽂を流してくれる Go製なのでbinaryだけで動く
sqldefの内部実装 Vitess(Vitess is a database clustering system for horizontal scaling of MySQL)のsqlparser のsourceを拡張して作られている。 information_schema.table_constraintsあた りをSELECTした結果を元にCREATE⽂を Buildしている。