├── .gitignore ├── .travis.yml ├── CONTRIBUTORS.md ├── LICENSE.md ├── Makefile ├── README.md ├── analyzer.go ├── analyzer_test.go ├── ast.go ├── ast_test.go ├── comments.go ├── comments_test.go ├── dependency ├── bytes2 │ ├── buffer.go │ └── buffer_test.go ├── hack │ ├── hack.go │ └── hack_test.go ├── querypb │ └── query.pb.go └── sqltypes │ ├── bind_variables.go │ ├── bind_variables_test.go │ ├── plan_value.go │ ├── plan_value_test.go │ ├── testing.go │ ├── type.go │ ├── type_test.go │ ├── value.go │ └── value_test.go ├── encodable.go ├── encodable_test.go ├── github_test.go ├── impossible_query.go ├── normalizer.go ├── normalizer_test.go ├── parse_next_test.go ├── parse_test.go ├── parsed_query.go ├── parsed_query_test.go ├── patches ├── bytes2.patch ├── querypb.patch ├── sqlparser.patch └── sqltypes.patch ├── precedence_test.go ├── redact_query.go ├── redact_query_test.go ├── sql.go ├── sql.y ├── token.go ├── token_test.go └── tracked_buffer.go /.gitignore: -------------------------------------------------------------------------------- 1 | y.output 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/.travis.yml -------------------------------------------------------------------------------- /CONTRIBUTORS.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/CONTRIBUTORS.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/LICENSE.md -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/README.md -------------------------------------------------------------------------------- /analyzer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/analyzer.go -------------------------------------------------------------------------------- /analyzer_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/analyzer_test.go -------------------------------------------------------------------------------- /ast.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/ast.go -------------------------------------------------------------------------------- /ast_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/ast_test.go -------------------------------------------------------------------------------- /comments.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/comments.go -------------------------------------------------------------------------------- /comments_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/comments_test.go -------------------------------------------------------------------------------- /dependency/bytes2/buffer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/dependency/bytes2/buffer.go -------------------------------------------------------------------------------- /dependency/bytes2/buffer_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/dependency/bytes2/buffer_test.go -------------------------------------------------------------------------------- /dependency/hack/hack.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/dependency/hack/hack.go -------------------------------------------------------------------------------- /dependency/hack/hack_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/dependency/hack/hack_test.go -------------------------------------------------------------------------------- /dependency/querypb/query.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/dependency/querypb/query.pb.go -------------------------------------------------------------------------------- /dependency/sqltypes/bind_variables.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/dependency/sqltypes/bind_variables.go -------------------------------------------------------------------------------- /dependency/sqltypes/bind_variables_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/dependency/sqltypes/bind_variables_test.go -------------------------------------------------------------------------------- /dependency/sqltypes/plan_value.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/dependency/sqltypes/plan_value.go -------------------------------------------------------------------------------- /dependency/sqltypes/plan_value_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/dependency/sqltypes/plan_value_test.go -------------------------------------------------------------------------------- /dependency/sqltypes/testing.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/dependency/sqltypes/testing.go -------------------------------------------------------------------------------- /dependency/sqltypes/type.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/dependency/sqltypes/type.go -------------------------------------------------------------------------------- /dependency/sqltypes/type_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/dependency/sqltypes/type_test.go -------------------------------------------------------------------------------- /dependency/sqltypes/value.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/dependency/sqltypes/value.go -------------------------------------------------------------------------------- /dependency/sqltypes/value_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/dependency/sqltypes/value_test.go -------------------------------------------------------------------------------- /encodable.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/encodable.go -------------------------------------------------------------------------------- /encodable_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/encodable_test.go -------------------------------------------------------------------------------- /github_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/github_test.go -------------------------------------------------------------------------------- /impossible_query.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/impossible_query.go -------------------------------------------------------------------------------- /normalizer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/normalizer.go -------------------------------------------------------------------------------- /normalizer_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/normalizer_test.go -------------------------------------------------------------------------------- /parse_next_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/parse_next_test.go -------------------------------------------------------------------------------- /parse_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/parse_test.go -------------------------------------------------------------------------------- /parsed_query.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/parsed_query.go -------------------------------------------------------------------------------- /parsed_query_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/parsed_query_test.go -------------------------------------------------------------------------------- /patches/bytes2.patch: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /patches/querypb.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/patches/querypb.patch -------------------------------------------------------------------------------- /patches/sqlparser.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/patches/sqlparser.patch -------------------------------------------------------------------------------- /patches/sqltypes.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/patches/sqltypes.patch -------------------------------------------------------------------------------- /precedence_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/precedence_test.go -------------------------------------------------------------------------------- /redact_query.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/redact_query.go -------------------------------------------------------------------------------- /redact_query_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/redact_query_test.go -------------------------------------------------------------------------------- /sql.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/sql.go -------------------------------------------------------------------------------- /sql.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/sql.y -------------------------------------------------------------------------------- /token.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/token.go -------------------------------------------------------------------------------- /token_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/token_test.go -------------------------------------------------------------------------------- /tracked_buffer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xwb1989/sqlparser/HEAD/tracked_buffer.go --------------------------------------------------------------------------------