parser_mysql

package
v0.0.0-...-12284b3 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(sch *config.Schema) parser.Parser

func ParseJoinToTables

func ParseJoinToTables(join *ast.Join) []*ast.TableSource

get list recursively left, right

func ParseTableName

func ParseTableName(table *ast.TableSource) string

func ParseWhereToFields

func ParseWhereToFields(where ast.ExprNode) []*binaryExpr

set column and value to map recursively

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func (*Parser) ConvType

func (p *Parser) ConvType(colType *schema.ColumnType) (genType string)

func (*Parser) Parse

func (p *Parser) Parse(sql string) (*parser.ParsedQuery, error)

Jump to

Keyboard shortcuts

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