query

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type From

type From struct {
	Alias    string
	X        node.Node
	Comments string
}

type GroupBy

type GroupBy struct {
	Items List
}

type Item

type Item struct {
	Expr      node.Node
	Alias     string
	Comments  string
	DataType  string
	Raw       string
	Meta      interface{}
	Direction string
}

func NewItem

func NewItem(expr node.Node) *Item

type Join

type Join struct {
	Kind     string
	Alias    string
	Raw      string
	With     node.Node
	On       *expr.Qualify
	Comments string
}

func NewJoin

func NewJoin(raw string) *Join

type List

type List []*Item

List represents a list

func (*List) Append

func (l *List) Append(item *Item)

type Order

type Order struct {
	Item
	Kind string
}

type Select

type Select struct {
	List    List
	From    From
	Joins   []*Join
	Qualify *expr.Qualify
	GroupBy []string
	Having  *expr.Qualify
	OrderBy List
	Window  *expr.Raw
	Limit   *expr.Literal
	Offset  *expr.Literal
	Kind    string
}

Jump to

Keyboard shortcuts

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