ast

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractCondBlock

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

Types

type ColumnType added in v0.2.5

type ColumnType struct {
	ColumnName string
}

type LiteralType added in v0.2.5

type LiteralType struct {
	RType reflect.Type
}

type Parameter

type Parameter struct {
	Id       string `json:",omitempty" yaml:",omitempty"`
	Name     string `json:",omitempty" yaml:",omitempty"`
	Kind     string `json:",omitempty" yaml:",omitempty"`
	Required bool   `json:",omitempty" yaml:",omitempty"`
	Type     string `json:",omitempty" yaml:",omitempty"`

	Assumed bool
	Typer   Typer `json:",omitempty" yaml:",omitempty"`
	// contains filtered or unexported fields
}

type Typer added in v0.2.5

type Typer interface{}

type ViewMeta

type ViewMeta struct {
	Parameters     []*Parameter      `json:",omitempty" yaml:",omitempty"`
	Source         string            `json:",omitempty" yaml:",omitempty"`
	From           string            `json:",omitempty" yaml:",omitempty"`
	Expressions    []string          `json:",omitempty" yaml:",omitempty"`
	ParameterTypes map[string]string `json:",omitempty" yaml:",omitempty"`
	// contains filtered or unexported fields
}

func Parse

func Parse(SQL string) (*ViewMeta, error)

func (*ViewMeta) ParamByName added in v0.2.5

func (m *ViewMeta) ParamByName(name string) (*Parameter, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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