SQLParser is a Java-based project designed to parse SQL SELECT
queries and return a structured QueryResponse
object. This project leverages the Chain of Responsibility and Null Object patterns to provide a robust and flexible parsing solution.
- Chain of Responsibility Pattern: The parsing process is handled by a series of chained handlers, each responsible for parsing specific parts of the SQL
SELECT
clause. - Null Object Pattern: Ensures that the parsing process handles missing or unrecognized components gracefully without the need for extensive null checks.
The SQLParserTest
is designed to facilitate easy testing of the application.
- Java 17 or higher
- Gradle for dependency management
Clone the repository and include it in your project.
git clone https://github.com/DersuSaakyan/sql-parser.git