-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
parser: add markdown doc about supported syntax
- Loading branch information
1 parent
fde9efe
commit 080cb98
Showing
1 changed file
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# SQL Parser Supported Features | ||
|
||
This document outlines the features currently supported by our work-in-progress SQL parser. | ||
|
||
## SELECT Statement | ||
|
||
- [x] Basic SELECT ... FROM ... structure | ||
- [x] Column selection | ||
- [x] Star (*) selection | ||
- [x] Individual column selection | ||
- [x] Qualified column names (e.g., table.column) | ||
- [x] Table selection in FROM clause | ||
- [x] Table aliasing | ||
- [x] WHERE clause with conditions | ||
- [x] GROUP BY clause | ||
- [x] ORDER BY clause | ||
- [x] ASC and DESC directives | ||
- [x] Multiple column ordering | ||
- [x] LIMIT clause | ||
- [ ] OFFSET clause | ||
- [ ] HAVING clause | ||
- [ ] Subqueries | ||
|
||
## Operators and Expressions | ||
|
||
- [x] Basic arithmetic operators (+, -, *, /) | ||
- [x] Comparison operators (=, !=, <>, >, <, >=, <=) | ||
- [x] Logical operators (AND, OR, NOT) | ||
- [x] IN operator | ||
- [x] NOT IN operator | ||
- [x] LIKE operator | ||
- [x] BETWEEN operator | ||
- [x] Parenthesized expressions | ||
- [x] Function calls | ||
- [x] CASE expressions (both simple and searched) | ||
|
||
## JOINs | ||
|
||
- [x] INNER JOIN | ||
- [x] LEFT OUTER JOIN | ||
- [x] Multiple joins in a single query | ||
- [x] Join conditions (ON clause) | ||
- [ ] RIGHT OUTER JOIN | ||
- [ ] FULL OUTER JOIN | ||
- [ ] CROSS JOIN | ||
|
||
## Data Types and Literals | ||
|
||
- [x] String literals | ||
- [x] Numeric literals (integers and floats) | ||
- [ ] Date and time literals | ||
- [ ] Boolean literals | ||
- [ ] NULL | ||
|
||
## Functions | ||
|
||
- [x] Basic function calls with arguments | ||
- [x] Aggregate functions (SUM, AVG, etc.) | ||
- [ ] Window functions | ||
|
||
## Additional Features | ||
|
||
- [x] Case insensitivity for keywords | ||
- [x] Column aliasing | ||
- [ ] Common Table Expressions (CTEs) | ||
- [ ] Set operations (UNION, INTERSECT, EXCEPT) | ||
|
||
## Other SQL Statement Types | ||
|
||
- [ ] INSERT | ||
- [ ] UPDATE | ||
- [ ] DELETE | ||
- [ ] CREATE TABLE | ||
- [ ] ALTER TABLE | ||
- [ ] DROP TABLE | ||
- [ ] CREATE INDEX | ||
- [ ] CREATE VIEW |