public interface Parser
A SQL parser.
- Author:
- Lukas Eder
- 
Method SummaryModifier and TypeMethodDescription@NotNull QueriesParse a SQL string to a set of queries.@NotNull QueriesParse a SQL string with bind variables to a set of queries.@NotNull ConditionparseCondition(String sql) Parse a SQL string to a condition.@NotNull ConditionparseCondition(String sql, Object... bindings) Parse a SQL string with bind variables to a condition.@NotNull Field<?>parseField(String sql) Parse a SQL string to a field.@NotNull Field<?>parseField(String sql, Object... bindings) Parse a SQL string with bind variables to a field.@NotNull NameParse a SQL string to a name.@NotNull NameParse a SQL string with bind variables to a name.@Nullable QueryparseQuery(String sql) Parse a SQL string to a query.@Nullable QueryparseQuery(String sql, Object... bindings) Parse a SQL string with bind variables to a query.@Nullable ResultQuery<?>parseResultQuery(String sql) Parse a SQL string to a result query.@Nullable ResultQuery<?>parseResultQuery(String sql, Object... bindings) Parse a SQL string with bind variables to a result query.@NotNull RowParse a SQL string to a row.@NotNull RowParse a SQL string with bind variables to a row.@Nullable Select<?>parseSelect(String sql) Parse a SQL string to a select statement.@Nullable Select<?>parseSelect(String sql, Object... bindings) Parse a SQL string to a select statement.@Nullable StatementparseStatement(String sql) Parse a SQL string to a procedural statement.@Nullable StatementparseStatement(String sql, Object... bindings) Parse a SQL string with bind variables to a procedural statement.@NotNull BlockparseStatements(String sql) Parse a SQL string to a set of procedural statements.@NotNull BlockparseStatements(String sql, Object... bindings) Parse a SQL string with bind variables to a set of procedural statements.@NotNull Table<?>parseTable(String sql) Parse a SQL string to a table.@NotNull Table<?>parseTable(String sql, Object... bindings) Parse a SQL string with bind variables to a table.
- 
Method Details- 
parseParse a SQL string to a set of queries.- Parameters:
- sql- The SQL string
- Throws:
- ParserException- If the SQL string could not be parsed.
 
- 
parse@NotNull @Support @PlainSQL @NotNull Queries parse(String sql, Object... bindings) throws ParserException Parse a SQL string with bind variables to a set of queries.- Parameters:
- sql- The SQL string
- bindings- The bind variables
- Throws:
- ParserException- If the SQL string could not be parsed.
 
- 
parseQueryParse a SQL string to a query.- Parameters:
- sql- The SQL string
- Throws:
- ParserException- If the SQL string could not be parsed.
 
- 
parseQuery@Nullable @Support @PlainSQL @Nullable Query parseQuery(String sql, Object... bindings) throws ParserException Parse a SQL string with bind variables to a query.- Parameters:
- sql- The SQL string
- bindings- The bind variables
- Throws:
- ParserException- If the SQL string could not be parsed.
 
- 
parseStatementParse a SQL string to a procedural statement.- Parameters:
- sql- The SQL string
- Throws:
- ParserException- If the SQL string could not be parsed.
 
- 
parseStatement@Nullable @Support @PlainSQL @Nullable Statement parseStatement(String sql, Object... bindings) throws ParserException Parse a SQL string with bind variables to a procedural statement.- Parameters:
- sql- The SQL string
- bindings- The bind variables
- Throws:
- ParserException- If the SQL string could not be parsed.
 
- 
parseStatementsParse a SQL string to a set of procedural statements.- Parameters:
- sql- The SQL string
- Throws:
- ParserException- If the SQL string could not be parsed.
 
- 
parseStatements@NotNull @Support @PlainSQL @Pro @NotNull Block parseStatements(String sql, Object... bindings) throws ParserException Parse a SQL string with bind variables to a set of procedural statements.- Parameters:
- sql- The SQL string
- bindings- The bind variables
- Throws:
- ParserException- If the SQL string could not be parsed.
 
- 
parseResultQuery@Nullable @Support @PlainSQL @Nullable ResultQuery<?> parseResultQuery(String sql) throws ParserException Parse a SQL string to a result query.- Parameters:
- sql- The SQL string
- Throws:
- ParserException- If the SQL string could not be parsed.
 
- 
parseResultQuery@Nullable @Support @PlainSQL @Nullable ResultQuery<?> parseResultQuery(String sql, Object... bindings) throws ParserException Parse a SQL string with bind variables to a result query.- Parameters:
- sql- The SQL string
- bindings- The bind variables
- Throws:
- ParserException- If the SQL string could not be parsed.
 
- 
parseSelectParse a SQL string to a select statement.- Parameters:
- sql- The SQL string
- Throws:
- ParserException- If the SQL string could not be parsed.
 
- 
parseSelect@Nullable @Support @PlainSQL @Nullable Select<?> parseSelect(String sql, Object... bindings) throws ParserException Parse a SQL string to a select statement.- Parameters:
- sql- The SQL string
- bindings- The bind variables
- Throws:
- ParserException- If the SQL string could not be parsed.
 
- 
parseTableParse a SQL string to a table.- Parameters:
- sql- The SQL string
- Throws:
- ParserException- If the SQL string could not be parsed.
 
- 
parseTable@NotNull @Support @PlainSQL @NotNull Table<?> parseTable(String sql, Object... bindings) throws ParserException Parse a SQL string with bind variables to a table.- Parameters:
- sql- The SQL string
- bindings- The bind variables
- Throws:
- ParserException- If the SQL string could not be parsed.
 
- 
parseFieldParse a SQL string to a field.- Parameters:
- sql- The SQL string
- Throws:
- ParserException- If the SQL string could not be parsed.
 
- 
parseField@NotNull @Support @PlainSQL @NotNull Field<?> parseField(String sql, Object... bindings) throws ParserException Parse a SQL string with bind variables to a field.- Parameters:
- sql- The SQL string
- bindings- The bind variables
- Throws:
- ParserException- If the SQL string could not be parsed.
 
- 
parseRowParse a SQL string to a row.- Parameters:
- sql- The SQL string
- Throws:
- ParserException- If the SQL string could not be parsed.
 
- 
parseRow@NotNull @Support @PlainSQL @NotNull Row parseRow(String sql, Object... bindings) throws ParserException Parse a SQL string with bind variables to a row.- Parameters:
- sql- The SQL string
- bindings- The bind variables
- Throws:
- ParserException- If the SQL string could not be parsed.
 
- 
parseConditionParse a SQL string to a condition.- Parameters:
- sql- The SQL string
- Throws:
- ParserException- If the SQL string could not be parsed.
 
- 
parseCondition@NotNull @Support @PlainSQL @NotNull Condition parseCondition(String sql, Object... bindings) throws ParserException Parse a SQL string with bind variables to a condition.- Parameters:
- sql- The SQL string
- bindings- The bind variables
- Throws:
- ParserException- If the SQL string could not be parsed.
 
- 
parseNameParse a SQL string to a name.- Parameters:
- sql- The SQL string
- Throws:
- ParserException- If the SQL string could not be parsed.
 
- 
parseName@NotNull @Support @PlainSQL @NotNull Name parseName(String sql, Object... bindings) throws ParserException Parse a SQL string with bind variables to a name.- Parameters:
- sql- The SQL string
- bindings- The bind variables
- Throws:
- ParserException- If the SQL string could not be parsed.
 
 
-