Package org.pentaho.di.core.database
Class SqlScriptParser
- java.lang.Object
-
- org.pentaho.di.core.database.SqlScriptParser
-
public class SqlScriptParser extends Object
This class represents a splitter of SQL script into separate statements. It respects the notion of a string literal and comments, such that if a separator appears in a string literal or comment, it is treated as part of the string or comment instead of a separator.- Author:
- Alexander Buloichik
-
-
Constructor Summary
Constructors Constructor Description SqlScriptParser(boolean usingBackslashAsEscapeCharForQuotation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
removeComments(String script)
This method removes comments from one statement.List<String>
split(String script)
This method splits script into separate statements.
-