parser

package
v0.42.5 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 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

type Function = antlrhelpers.Function

type Functions

type Functions = antlrhelpers.Functions

type IndexExtra

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

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, driver string) 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