The Wayback Machine - https://web.archive.org/web/20200904174315/https://github.com/softwaregravy/sqlparser/
Skip to content
master
Go to file
Code
This branch is even with segmentio:master.

readme.md

Build Status

##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/segmentio/sqlparser"
)

Then use

sqlparser.Parse(sql)

See parse_test.go for more Parse usage.

See rewriter_test.go for Rewriter usage.

About

SQL Parser implemented in Go

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.