GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - arana-db/parser: A MySQL Compatible SQL Parser

BranchesTags
Open more actions menu

Latest commit

 

History

38 Commits
38 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
ast
ast
 
 
auth
auth
 
 
charset
charset
 
 
docs
docs
 
 
format
format
 
 
goyacc
goyacc
 
 
model
model
 
 
mysql
mysql
 
 
opcode
opcode
 
 
terror
terror
 
 
test_driver
test_driver
 
 
tidb
tidb
 
 
types
types
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
bench_test.go
bench_test.go
 
 
codecov.yml
codecov.yml
 
 
consistent_test.go
consistent_test.go
 
 
digester.go
digester.go
 
 
digester_test.go
digester_test.go
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
hintparser.go
hintparser.go
 
 
hintparser.y
hintparser.y
 
 
hintparser_test.go
hintparser_test.go
 
 
hintparserimpl.go
hintparserimpl.go
 
 
lexer.go
lexer.go
 
 
lexer_test.go
lexer_test.go
 
 
main_test.go
main_test.go
 
 
misc.go
misc.go
 
 
parser.go
parser.go
 
 
parser.y
parser.y
 
 
parser_test.go
parser_test.go
 
 
reserved_words_test.go
reserved_words_test.go
 
 
test.sh
test.sh
 
 
yy_parser.go
yy_parser.go
 
 

Repository files navigation

Parser - A MySQL Compatible SQL Parser

The goal of this project is to build a Golang parser that is fully compatible with MySQL syntax, easy to extend, and high performance. Currently, features supported by parser are as follows:

  • Highly compatible with MySQL: it supports almost all features of MySQL. For the complete details, see parser.y and hintparser.y.
  • Extensible: adding a new syntax requires only a few lines of Yacc and Golang code changes. As an example, see PR-9.
  • Good performance: the parser is generated by goyacc in a bottom-up approach. It is efficient to build an AST tree with a state machine.

Future

  • Support more MySQL syntax
  • Optimize the code structure, make it easier to extend
  • Improve performance and benchmark
  • Improve the quality of code and comments

License

Parser is under the Apache 2.0 license. See the LICENSE file for details.

About

A MySQL Compatible SQL Parser

Resources

Readme
Apache-2.0 license

Security policy

Security policy
Activity
Custom properties

Stars

41 stars

Watchers

16 watching

Forks

24 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.