parser

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandQuotedSource

func ExpandQuotedSource(buf *strings.Builder, source QuerySource)

func NewVisitor

func NewVisitor(db tables) *visitor

func TranslateColumnType

func TranslateColumnType(fullType string) (string, []string)

translateTableColumnType converts mysql database types to Go types, for example "varchar" to "string" and "bigint" to "int64". It returns this parsed data as a Column object.

Types

type Function

type Function = antlrhelpers.Function

type Functions

type Functions = antlrhelpers.Functions

type Node

type Node = antlrhelpers.Node

type NodeInfo

type NodeInfo = antlrhelpers.NodeInfo

type NodeKey

type NodeKey = antlrhelpers.NodeKey

type NodeType

type NodeType = antlrhelpers.NodeType

type NodeTypes

type NodeTypes = antlrhelpers.NodeTypes

type Parser

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

func New

func New(t tables) Parser

func (Parser) ParseFolders

func (p Parser) ParseFolders(ctx context.Context, paths ...string) ([]drivers.QueryFolder, error)

func (Parser) ParseQueries

func (p Parser) ParseQueries(_ context.Context, s string) ([]drivers.Query, error)

type QuerySource

type QuerySource = antlrhelpers.QuerySource

type ReturnColumn

type ReturnColumn = antlrhelpers.ReturnColumn

type StmtInfo

type StmtInfo = antlrhelpers.StmtInfo

Jump to

Keyboard shortcuts

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