parseLine

Takes the input string and builds a string to represent the SQL command from the string. Uses EmbeddedDerbyDatabase.DEFAULT_DELIMITER as the delimiter, i.e. ";" Checks for "--", "//" and "#" as start of line comments

Return

the LineOption COMMENT means line was a comment, CONTINUED means that command continues on next line, END means that command was ended with the delimiter

Parameters

line

the input to parse

command

the parsed output


fun parseLine(line: String, delimiter: String, command: StringBuilder): DatabaseIfc.LineOption

Takes the input string and builds a string to represent the SQL command from the string. Checks for "--", "//" and "#" as start of line comments

Return

the LineOption COMMENT means line was a comment, CONTINUED means that command continues on next line, END means that command was ended with the delimiter

Parameters

line

the input to parse

delimiter

the end of command indicator

command

the parsed output