public class SqlScriptExecutor extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FINISHED_MULTILINE_COMMENT
Comment prefix for last line of a multi-line comment.
|
static String |
UNFINISHED_MULTILINE_COMMENT
Comment prefix for multi-line comments.
|
| Constructor and Description |
|---|
SqlScriptExecutor(Session session,
int threads)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Pair<Integer,Long> |
executeScript(String scriptFileName)
Reads in and executes a SQL-script.
|
Pair<Integer,Long> |
executeScript(String scriptFileName,
boolean transactional)
Reads in and executes a SQL-script.
|
static Pair<Integer,Long> |
getLastStatementCount() |
public static final String UNFINISHED_MULTILINE_COMMENT
public static final String FINISHED_MULTILINE_COMMENT
public SqlScriptExecutor(Session session, int threads)
session - for execution of statementsthreads - number of threads to usepublic Pair<Integer,Long> executeScript(String scriptFileName, boolean transactional) throws IOException, SQLException
scriptFileName - the name of the script-fileIOExceptionSQLExceptionpublic Pair<Integer,Long> executeScript(String scriptFileName) throws IOException, SQLException
scriptFileName - the name of the script-fileIOExceptionSQLException