Class SqlParser
- java.lang.Object
-
- io.github.spartatech.sqljson.sqlparse.SqlParser
-
public class SqlParser extends Object
Class responsible to Parse the SQL query and convert to JsonQueryClause.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonQueryClauseparseQuery()Parses the query and return it to be processed.
-
-
-
Constructor Detail
-
SqlParser
public SqlParser(String query)
Constructor.- Parameters:
query- to be parsed
-
-
Method Detail
-
parseQuery
public JsonQueryClause parseQuery() throws SQLSyntaxErrorException, SQLFeatureNotSupportedException
Parses the query and return it to be processed.- Returns:
- JsonQueryClause
- Throws:
SQLSyntaxErrorException- in case parse failsSQLFeatureNotSupportedException- in case trying to query multiple tables
-
-