Registry / database / pingcap-tidb-parser

pingcap-tidb-parser

JSON →
librarygogounverified

A Go library for parsing SQL statements, used internally by the TiDB distributed SQL database.

go get github.com/pingcap/tidb/parser
INSTALL
IMPORT
SIG · PINGCAP-TIDB-PARSE
P
pingcap-tidb-parser
databasego
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

parser
github.com/pingcap/tidb/parser

Parses a simple SQL statement using the TiDB parser.

package main import ( "fmt" "github.com/pingcap/tidb/parser" ) func main() { p := parser.New() stmt, _, err := p.Parse("SELECT 1", "", "") if err != nil { panic(err) } fmt.Printf("Parsed %d statements\n", len(stmt)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
pingcap-tidb-parser — go get pingcap-tidb-parser · libregistry