Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ sql Public

Pure Go SQL parser based on the SQLite SQL definition

License

Notifications You must be signed in to change notification settings

rqlite/sql

Repository files navigation

sql

Circle CI

This repository holds a pure Go SQL parser based on the SQLite SQL definition. It implements nearly all features of the language except ATTACH, DETACH, and some other minor features.

Example Usage

parser := NewParser(strings.NewReader("SELECT * FROM foo WHERE id=4"))
expr, _ = parser.Parse()
fmt.Println(expr)

Review the unit tests in parser_test.go for an extensive set of parsing examples.

Credits

This parser was originally created by Ben Johnson. Many thanks to him for making it available for use by rqlite.

About

Pure Go SQL parser based on the SQLite SQL definition

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /