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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetArgs

func GetArgs(bindArgs, groupArgs []drivers.QueryArg) []drivers.QueryArg

func ParseFolders

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

func ParseQueryColumnConfig

func ParseQueryColumnConfig(options string) drivers.QueryCol

ParseQueryColumnConfig parses a user configuration string into a QueryCol. The configuration string should be in the format: "name:type:notnull"

func ParseQueryConfig

func ParseQueryConfig(options string) drivers.QueryConfig

ParseQueryConfig parses a user configuration string into a QueryCoonfig. The configuration string should be in the format: "result_type_one:result_type_all:result_type_transformer"

Types

type QueryParser

type QueryParser interface {
	ParseQueries(ctx context.Context, s string) ([]drivers.Query, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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