Documentation ¶
Index ¶
- func CStringStrip(s string) string
- func NewParserError(sql string, err error) error
- type Node
- func (n *Node) AllChildrenConstant() bool
- func (n *Node) Info() string
- func (n *Node) Last() *Node
- func (n *Node) Message() string
- func (n *Node) NewChild(node ast.Node) *Node
- func (n *Node) PrintTree(level int, lead string, last bool)
- func (n *Node) TypeEqual(other *Node) bool
- func (n *Node) VerifyConstant()
- type Parser
- type ParserError
- type Visitor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CStringStrip ¶
func NewParserError ¶
NewParserError parse error message of TiDB parser error, with SQL statement and hint.
Types ¶
type Node ¶
Node is a wrap for ast.Node, add pointers to parent and children
func (*Node) AllChildrenConstant ¶
func (*Node) VerifyConstant ¶
func (n *Node) VerifyConstant()
type Parser ¶
type Parser struct { StripCString bool // contains filtered or unexported fields }
Parser is a TiDB parser and its configures
type ParserError ¶
ParserError parse error message of TiDB parser error
func (*ParserError) Error ¶
func (e *ParserError) Error() string
func (*ParserError) Hint ¶
func (e *ParserError) Hint() string
func (*ParserError) Unwrap ¶
func (e *ParserError) Unwrap() error
type Visitor ¶
func NewVisitor ¶
func NewVisitor() *Visitor
Click to show internal directories.
Click to hide internal directories.