Documentation ¶
Index ¶
- type BlockExpression
- type ConditionExpression
- type ForExpression
- func (e *ForExpression) AddDistinct(src core.SourceMap)
- func (e *ForExpression) AddFilter(src core.SourceMap, exp core.Expression)
- func (e *ForExpression) AddLimit(src core.SourceMap, size, count int)
- func (e *ForExpression) AddSort(src core.SourceMap, sorters ...*clauses.SorterExpression)
- func (e *ForExpression) Exec(ctx context.Context, scope *core.Scope) (core.Value, error)
- type FunctionCallExpression
- type MemberExpression
- type ParameterExpression
- type ReturnExpression
- type VariableDeclarationExpression
- type VariableExpression
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockExpression ¶
type BlockExpression struct {
// contains filtered or unexported fields
}
func NewBlockExpression ¶
func NewBlockExpression(size int) *BlockExpression
func NewBlockExpressionWith ¶
func NewBlockExpressionWith(elements ...core.Expression) *BlockExpression
func (*BlockExpression) Add ¶
func (b *BlockExpression) Add(exp core.Expression) error
type ConditionExpression ¶
type ConditionExpression struct {
// contains filtered or unexported fields
}
func NewConditionExpression ¶
func NewConditionExpression( src core.SourceMap, test core.Expression, consequent core.Expression, alternate core.Expression, ) (*ConditionExpression, error)
type ForExpression ¶
type ForExpression struct {
// contains filtered or unexported fields
}
func NewForExpression ¶
func NewForExpression( src core.SourceMap, valVar string, keyVar string, dataSource collections.IterableExpression, predicate core.Expression, spread bool, ) (*ForExpression, error)
func (*ForExpression) AddDistinct ¶
func (e *ForExpression) AddDistinct(src core.SourceMap)
func (*ForExpression) AddFilter ¶
func (e *ForExpression) AddFilter(src core.SourceMap, exp core.Expression)
func (*ForExpression) AddLimit ¶
func (e *ForExpression) AddLimit(src core.SourceMap, size, count int)
func (*ForExpression) AddSort ¶
func (e *ForExpression) AddSort(src core.SourceMap, sorters ...*clauses.SorterExpression)
type FunctionCallExpression ¶
type FunctionCallExpression struct {
// contains filtered or unexported fields
}
func NewFunctionCallExpression ¶
func NewFunctionCallExpression( src core.SourceMap, fun core.Function, args ...core.Expression, ) (*FunctionCallExpression, error)
func (*FunctionCallExpression) Iterate ¶
func (e *FunctionCallExpression) Iterate(ctx context.Context, scope *core.Scope) (collections.Iterator, error)
type MemberExpression ¶
type MemberExpression struct {
// contains filtered or unexported fields
}
func NewMemberExpression ¶
func NewMemberExpression(src core.SourceMap, variableName string, path []core.Expression) (*MemberExpression, error)
func (*MemberExpression) Iterate ¶
func (e *MemberExpression) Iterate(ctx context.Context, scope *core.Scope) (collections.Iterator, error)
type ParameterExpression ¶
type ParameterExpression struct {
// contains filtered or unexported fields
}
func NewParameterExpression ¶
func NewParameterExpression(src core.SourceMap, name string) (*ParameterExpression, error)
func (*ParameterExpression) Iterate ¶
func (e *ParameterExpression) Iterate(ctx context.Context, scope *core.Scope) (collections.Iterator, error)
type ReturnExpression ¶
type ReturnExpression struct {
// contains filtered or unexported fields
}
func NewReturnExpression ¶
func NewReturnExpression( src core.SourceMap, predicate core.Expression, ) (*ReturnExpression, error)
type VariableDeclarationExpression ¶
type VariableDeclarationExpression struct { *VariableExpression // contains filtered or unexported fields }
func NewVariableDeclarationExpression ¶
func NewVariableDeclarationExpression(src core.SourceMap, name string, init core.Expression) (*VariableDeclarationExpression, error)
type VariableExpression ¶
type VariableExpression struct {
// contains filtered or unexported fields
}
func NewVariableExpression ¶
func NewVariableExpression(src core.SourceMap, name string) (*VariableExpression, error)
func (*VariableExpression) Iterate ¶
func (e *VariableExpression) Iterate(ctx context.Context, scope *core.Scope) (collections.Iterator, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.