parser

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SqlParse

type SqlParse struct {
	TableNames []string
	Operation  string
	JoinType   string
}

func ParseSQL

func ParseSQL(sql string) (*SqlParse, error)

func (*SqlParse) Enter

func (v *SqlParse) Enter(in ast.Node) (ast.Node, bool)

func (*SqlParse) Extract

func (v *SqlParse) Extract(rootNode *ast.StmtNode) *SqlParse

func (*SqlParse) Leave

func (v *SqlParse) Leave(in ast.Node) (ast.Node, bool)

Jump to

Keyboard shortcuts

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