ast

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractCondBlock

func ExtractCondBlock(SQL string) (string, []string)

func ExtractCriteriaPlaceholders added in v0.2.11

func ExtractCriteriaPlaceholders(node node.Node, list *[]*Criterion)

func ExtractHint added in v0.2.11

func ExtractHint(text string) string

func ExtractParameterHints added in v0.2.11

func ExtractParameterHints(text string) option.ParameterHints

func ExtractSelector added in v0.2.11

func ExtractSelector(text string) string

func IsDataViewKind added in v0.2.11

func IsDataViewKind(hint string) bool

func IsSQLExecMode added in v0.2.11

func IsSQLExecMode(SQL string) bool

func Parse

func Parse(SQL string, route *option.Route, hints option.ParameterHints) (*option.ViewMeta, error)

func ParseURIParams added in v0.2.6

func ParseURIParams(URI string) []string

ParseURIParams extract URI params from URI

func RemoveParameterHints added in v0.2.11

func RemoveParameterHints(text string, hints option.ParameterHints) string

func SplitHint added in v0.2.11

func SplitHint(hint string) (marshal string, SQL string)

func UnmarshalHint added in v0.2.11

func UnmarshalHint(hint string, dest interface{}) (string, error)

Types

type Criterion added in v0.2.11

type Criterion struct {
	X, Y, Op string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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