repositorypackage
0.0.0-20230118182555-c8529b1bd7a2
Repository: https://github.com/honeycombio/sqlparser.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
sqlparser
Known limitations
This parser currently does not support:
- Quoted table or column names
- Table or column names that are reserved keywords
Notice
The backbone of this repo is extracted from youtube/vitess.
Inside youtube/vitess there is a very nicely written sql parser. However as it's not a self-contained application, I created this one. It applies the same LICENSE as youtube/vitess.
What's More In this REPO
- Rewrite SQL Queries by self-defined rewriter
- Able to parse Create Table statements way much better
Usage
import (
"github.com/xwb1989/sqlparser"
)
Then use
sqlparser.Parse(sql)
See parse_test.go
for more Parse
usage.
See rewriter_test.go
for Rewriter
usage.