Package me.danwi.sqlex.core.migration
Interface MigrateCallback
-
- All Known Implementing Classes:
MultiMigrateCallback
public interface MigrateCallback迁移回调
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidafter(int version, RawSQLExecutor executor)迁移后调用voidbefore(int version, RawSQLExecutor executor)迁移前调用
-
-
-
Method Detail
-
before
void before(int version, RawSQLExecutor executor) throws java.lang.Exception迁移前调用- Parameters:
version- 准备迁移的版本executor- 原生SQL执行器- Throws:
java.lang.Exception- 迁移异常
-
after
void after(int version, RawSQLExecutor executor) throws java.lang.Exception迁移后调用- Parameters:
version- 迁移完成的版本executor- 原生SQL执行器- Throws:
java.lang.Exception- 迁移异常
-
-