File tree Expand file tree Collapse file tree 1 file changed +4
-22
lines changed Expand file tree Collapse file tree 1 file changed +4
-22
lines changed Original file line number Diff line number Diff line change 1
- # vitess-sqlparser
1
+ # Athena SQL Parser
2
2
3
- Simply SQL and DDL parser for Go (powered by vitess and TiDB )
4
- this library inspired by https://github.com/xwb1989/sqlparser
3
+ Go package for parsing Athena SQL SELECT statements and queries on views.
5
4
6
- (original source : https://github.com/youtube /vitess/tree/master/go/vt/ sqlparser )
5
+ It's a fork of https://github.com/blastrain /vitess- sqlparser that is designed to do the same but for MySQL.
7
6
8
- # Why
9
-
10
- [ xwb1989/sqlparser] ( https://github.com/xwb1989/sqlparser ) is famous sql parser in Go.
11
- But it cannot parse some query (like offset or bulk insert...) because it customizes vitess's sql parser.
12
-
13
- Also, some libraries use from vitess sql parser directly. But vitess's sql parser only partial supports DDL parsing.
14
-
15
- We want to perfectly support parsing for SQL and DDL.
16
- Therefore we use vitess sql parser directly and also use TiDB parser for DDL parsing.
17
-
18
- # Compare SQL parser libraries in Go
19
-
20
- | library | supports offset (or other complexity) query | supports DDL |
21
- | :---:| :---:| :---:|
22
- | xwb1989/sqlparser | ✗ | △|
23
- | zhenjl/sqlparser | ○| △ |
24
- | knocknote/vitess-sqlparser| ○| ○|
25
7
26
8
# Installation
27
9
28
10
## [ NOTE] Required Go version more than 1.9
29
11
30
12
```
31
- go get -u github.com/knocknote/vitess -sqlparser
13
+ go get -u github.com/tomerlieber/athena -sqlparser
32
14
```
33
15
34
16
# Examples
You can’t perform that action at this time.
0 commit comments