parser

package
v0.41.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVisitor

func NewVisitor(db tables) *visitor

func TranslateColumnType

func TranslateColumnType(dbType, driver string) string

TranslateColumnType converts sqlite database types to Go types, for example "varchar" to "string" and "bigint" to "int64". It returns this parsed data as a Column object. https://sqlite.org/datatype3.html

Types

type Function added in v0.35.0

type Function = antlrhelpers.Function

type Functions added in v0.35.0

type Functions = antlrhelpers.Functions

type IndexExtra

type IndexExtra = struct {
	Partial bool `json:"partial"`
}

type Node added in v0.35.0

type Node = antlrhelpers.Node

type NodeInfo added in v0.35.0

type NodeInfo = antlrhelpers.NodeInfo

type NodeKey added in v0.35.0

type NodeKey = antlrhelpers.NodeKey

type NodeType added in v0.35.0

type NodeType = antlrhelpers.NodeType

type NodeTypes added in v0.35.0

type NodeTypes = antlrhelpers.NodeTypes

type Parser

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

func New

func New(t tables, driver string) Parser

func (Parser) ParseFolders added in v0.35.0

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 added in v0.35.0

type QuerySource = antlrhelpers.QuerySource

type ReturnColumn added in v0.35.0

type ReturnColumn = antlrhelpers.ReturnColumn

type StmtInfo added in v0.35.0

type StmtInfo = antlrhelpers.StmtInfo

Jump to

Keyboard shortcuts

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