use of io.vertigo.core.resource.ResourceManager in project vertigo by KleeGroup.
the class NameSpace2JavaTest method execSqlScript.
private void execSqlScript(final String sqlScript, final App app) {
final ResourceManager resourceManager = app.getComponentSpace().resolve(ResourceManager.class);
final SqlDataBaseManager sqlDataBaseManager = app.getComponentSpace().resolve(SqlDataBaseManager.class);
final SqlConnection connection = sqlDataBaseManager.getConnectionProvider(SqlDataBaseManager.MAIN_CONNECTION_PROVIDER_NAME).obtainConnection();
DataBaseScriptUtil.execSqlScript(connection, sqlScript, resourceManager, sqlDataBaseManager);
}
Aggregations