public class SqlFileLinesReader extends Object
Constructor and Description |
---|
SqlFileLinesReader(ExecutionContext context,
RunSQL runner,
FlywaySqlRunner flywayRunner) |
Modifier and Type | Method and Description |
---|---|
void |
endCurrentSql(int lineNumber)
Called when file ended, so that last statement can be executed in multiline mode.
|
void |
processLine(String line,
int lineNumber)
Parse and run next input line.
|
protected void |
runLikeSingleLine(String sql,
int lineNumber) |
public SqlFileLinesReader(ExecutionContext context, RunSQL runner, FlywaySqlRunner flywayRunner)
public void processLine(String line, int lineNumber) throws ErrorException
line
- - line to interpretedlineNumber
- - line number for error reportingErrorException
public void endCurrentSql(int lineNumber) throws ErrorException
lineNumber
- ErrorException
protected void runLikeSingleLine(String sql, int lineNumber) throws ErrorException
ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.