配置示例:
{
"ermFile": "*.erm",
"newErmPath": "D:\\workspace\\JavaProjects\\demo\\src\\main\\resources\\db.erm",
"oldErmPath": "D:\\workspace\\JavaProjects\\demo\\src\\main\\resources\\db2.erm",
"dbName": "demodb",
"dbHost": "",
"dbUser": "",
"dbPass": "",
"dbType": "mysql",
"type": "erm-erm",
"outPath": "",
"genDdl": true
}
说明:
ermFile
erm文件,可指定单个文件,*.erm 为所有文件newErmPath
当前erm文件路径oldErmPath
上一版本erm文件路径dbName
DB名称dbHost
DB hostdbUser
DB userdbPass
DB passworddbType
mysqltype
erm-erm, erm-db 两种模式outPath
输出路径,默认当前执行路径genDdl
true 生成 sql 文件
type 为 erm-erm DB 相关可不配置,erm-db 时 oldErmPath 可不配置