query

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 2 Imported by: 7 modules, 14 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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)

func (List) IsStarExpr

func (l List) IsStarExpr() bool

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
}

func (*Select) IsNested

func (s *Select) IsNested() bool

func (*Select) NestedSelect

func (s *Select) NestedSelect() *Select

Jump to

Keyboard shortcuts

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