tidb

package
v0.1.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Init creates the TiDB parser instance and other resources.

func Parse

func Parse(sql string) (idx int, err error)

Parse calls TiDB's parser to parse a statement sql. It returns <-1,nil> if TiDB parser accepts the statement, or <pos,nil> if TiDB doesn't accept but returns a `near "..."` in the error message, or <-1,err> if the error messages doens't contain near.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL