private void execCommand(Connection conn, StringBuffer command,
                             LineNumberReader lineReader) throws IOException, SQLException {

        if (command.length() == 0) {
            return;
        }

        Matcher sourceCommandMatcher = SOURCE_COMMAND.matcher(command);
        if (sourceCommandMatcher.matches()) {
            this.runScriptFile(conn, sourceCommandMatcher.group(1));
            return;
        }

        this.execSqlCommand(conn, command, lineReader);
    }
Runs an SQL script (read in using the Reader parameter) using the
connection passed in

@param conn - the connection to use for the script
@param reader - the source of the script
@throws SQLException if any SQL errors occur
@throws IOException if there is an error reading from the Reader
src/test/java/org/replicadb/utils/ScriptRunner.java