sqlutil

package
v1.2.50 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MySQLAst

func MySQLAst(sql string) (tiast.StmtNode, error)

Types

type ColumnRep

type ColumnRep struct {
	Name   *tiast.ColumnName
	AsName timodel.CIStr
}

type ColumnVisitor

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

func (*ColumnVisitor) Column

func (v *ColumnVisitor) Column() []string

func (*ColumnVisitor) Enter

func (v *ColumnVisitor) Enter(in tiast.Node) (tiast.Node, bool)

func (*ColumnVisitor) Leave

func (v *ColumnVisitor) Leave(in tiast.Node) (tiast.Node, bool)

type InsertValueVisitor

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

func (*InsertValueVisitor) Enter

func (v *InsertValueVisitor) Enter(in tiast.Node) (tiast.Node, bool)

func (*InsertValueVisitor) Leave

func (v *InsertValueVisitor) Leave(in tiast.Node) (tiast.Node, bool)

func (*InsertValueVisitor) Values

func (v *InsertValueVisitor) Values() [][]any

type SelectColumnVisitor

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

func (*SelectColumnVisitor) Column

func (v *SelectColumnVisitor) Column() []ColumnRep

func (*SelectColumnVisitor) Enter

func (v *SelectColumnVisitor) Enter(in tiast.Node) (tiast.Node, bool)

func (*SelectColumnVisitor) Leave

func (v *SelectColumnVisitor) Leave(in tiast.Node) (tiast.Node, bool)

Jump to

Keyboard shortcuts

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