Package org.apache.ibatis.migration.hook
Class HookContext
java.lang.Object
org.apache.ibatis.migration.hook.HookContext
-
Constructor Summary
ConstructorsConstructorDescriptionHookContext(ConnectionProvider connectionProvider, ScriptRunner scriptRunner, Change change) -
Method Summary
-
Constructor Details
-
HookContext
-
-
Method Details
-
getConnection
- Returns:
- A new
Connectionto the database. The returned connection must be closed. - Throws:
SQLException- If a database access error occurs.
-
executeSql
- Parameters:
reader- Source of the SQL to execute.
-
executeSql
- Parameters:
sql- SQL to execute.
-
getChange
-