-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d6b3d08
commit d4fdd6f
Showing
1 changed file
with
31 additions
and
1 deletion.
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 |
---|---|---|
@@ -1 +1,31 @@ | ||
# tree-sitter-sql | ||
# tree-sitter-sql | ||
|
||
[![Build/test]()]() | ||
|
||
SQL grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter). | ||
|
||
## Features | ||
|
||
- [x] SELECT statements (some features may be incomplete) | ||
- [x] Index hints | ||
- [x] Comments | ||
- [x] Marginalia | ||
- [ ] UPDATE statements | ||
- [ ] DELETE statements | ||
- [ ] CREATE statements | ||
- [ ] DROP statements | ||
- [ ] ALTER TABLE statements | ||
- [ ] CREATE INDEX statements | ||
- [ ] DROP INDEX statements | ||
- [ ] ALTER INDEX statements | ||
- [ ] EXPLAIN statements | ||
- [ ] Functions (some are implemented) | ||
|
||
For a complete list of features see the the [tests](test/corpus) | ||
|
||
## References | ||
|
||
* [The ESTree Spec](https://en.wikipedia.org/wiki/SQL_syntax#Operators) - I consulted wikipedia for naming conventions, | ||
though I may not have been strict early on in the prototyping. | ||
* [Phoenix Language Reference](https://forcedotcom.github.io/phoenix/index.html) - Note I'm using this as a reference | ||
but implementing the Grammar in terms of the MySQL dialect of SQL. |