ast

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 11 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 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"`
	Positions []int  `json:",omitempty" yaml:",omitempty"`
	// contains filtered or unexported fields
}

type ViewMeta

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

func Parse

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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