forked from radondb/radon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sqlparser: restructure the ast radondb#480
[summary] In vitess, the AST visitor has been restructured, these work are worthy of reference. The AST structs and interface implementations live in the ast.go, which is what the visitor generator reads to produce the visitor. The rest of the AST functionality, all methods belonging to structs and not implementing any interfaces, now live in ast_funcs.go. [test case] src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/parse_test.go [patch codecov] src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go 87.4% src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast_func.go 95.8% src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/parser.go 90.9% src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/sql.go 92.0%
- Loading branch information
mytesla
committed
May 28, 2020
1 parent
6167280
commit b4f2934
Showing
11 changed files
with
1,974 additions
and
1,935 deletions.
There are no files selected for viewing
2,434 changes: 793 additions & 1,641 deletions
2,434
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go
Large diffs are not rendered by default.
Oops, something went wrong.
878 changes: 878 additions & 0 deletions
878
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast_func.go
Large diffs are not rendered by default.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/constants.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/explain.go
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/kill.go
This file was deleted.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/parse_test.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
101 changes: 101 additions & 0 deletions
101
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/parser.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.