Package me.danwi.sqlex.core.migration
Class MultiMigrateCallback
java.lang.Object
me.danwi.sqlex.core.migration.MultiMigrateCallback
- All Implemented Interfaces:
MigrateCallback
多个迁移回调组合
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(MigrateCallback callback) voidafter(int version, RawSQLExecutor executor) 迁移后调用voidbefore(int version, RawSQLExecutor executor) 迁移前调用voidclear()voidremove(MigrateCallback callback)
-
Constructor Details
-
MultiMigrateCallback
public MultiMigrateCallback() -
MultiMigrateCallback
-
-
Method Details
-
add
-
remove
-
clear
public void clear() -
before
Description copied from interface:MigrateCallback迁移前调用- Specified by:
beforein interfaceMigrateCallback- Parameters:
version- 准备迁移的版本executor- 原生SQL执行器- Throws:
Exception- 迁移异常
-
after
Description copied from interface:MigrateCallback迁移后调用- Specified by:
afterin interfaceMigrateCallback- Parameters:
version- 迁移完成的版本executor- 原生SQL执行器- Throws:
Exception- 迁移异常
-