clauses

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2018 License: MIT Imports: 4 Imported by: 0 modules, 0 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 DistinctClause

type DistinctClause struct {
	// contains filtered or unexported fields
}

func NewDistinctClause

func NewDistinctClause(
	src core.SourceMap,
	dataSource collections.IterableExpression,
) *DistinctClause

func (DistinctClause) Exec

func (clause DistinctClause) Exec(ctx context.Context, scope *core.Scope) (core.Value, error)

func (*DistinctClause) Iterate

func (clause *DistinctClause) Iterate(ctx context.Context, scope *core.Scope) (collections.Iterator, error)

type FilterClause

type FilterClause struct {
	// contains filtered or unexported fields
}

func NewFilterClause

func NewFilterClause(
	src core.SourceMap,
	dataSource collections.IterableExpression,
	valVar string,
	keyVar string,
	predicate core.Expression,
) *FilterClause

func (FilterClause) Exec

func (clause FilterClause) Exec(ctx context.Context, scope *core.Scope) (core.Value, error)

func (*FilterClause) Iterate

func (clause *FilterClause) Iterate(ctx context.Context, scope *core.Scope) (collections.Iterator, error)

type LimitClause

type LimitClause struct {
	// contains filtered or unexported fields
}

func NewLimitClause

func NewLimitClause(
	src core.SourceMap,
	dataSource collections.IterableExpression,
	count int,
	offset int,
) *LimitClause

func (LimitClause) Exec

func (clause LimitClause) Exec(ctx context.Context, scope *core.Scope) (core.Value, error)

func (*LimitClause) Iterate

func (clause *LimitClause) Iterate(ctx context.Context, scope *core.Scope) (collections.Iterator, error)

type SortClause

type SortClause struct {
	// contains filtered or unexported fields
}

func NewSortClause

func NewSortClause(
	src core.SourceMap,
	dataSource collections.IterableExpression,
	variableName string,
	sorters ...*SorterExpression,
) *SortClause

func (SortClause) Exec

func (clause SortClause) Exec(ctx context.Context, scope *core.Scope) (core.Value, error)

func (*SortClause) Iterate

func (clause *SortClause) Iterate(ctx context.Context, scope *core.Scope) (collections.Iterator, error)

type SorterExpression

type SorterExpression struct {
	// contains filtered or unexported fields
}

func NewSorterExpression

func NewSorterExpression(expression core.Expression, direction collections.SortDirection) (*SorterExpression, error)

Jump to

Keyboard shortcuts

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