public class SqlScriptRunnerCached extends Object
| Constructor and Description |
|---|
SqlScriptRunnerCached() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
extractSqlScriptFromResourceFile(String resourcePath)
Extracts SQL script based on a given resource path.
|
static void |
runScriptFromResourceFile(Connection connection,
String... paths) |
static void |
runScriptFromResourceFile(Connection connection,
String resourcePath)
Executes the SQL commands in the given resource file.
|
public static void runScriptFromResourceFile(Connection connection, String... paths)
public static void runScriptFromResourceFile(Connection connection, String resourcePath)
connection - the database connection to use for executing the scriptresourcePath - the path to the resource file containing the SQL commandsCopyright © 2016–2025. All rights reserved.