Documentation ¶
Index ¶
- func NewDataSource(src core.SourceMap, valVariable, keyVariable string, exp core.Expression) (collections.Iterable, error)
- type BlockExpression
- type BodyExpression
- type ConditionExpression
- type DataSource
- type ForExpression
- func (e *ForExpression) AddCollect(src core.SourceMap, params *clauses.Collect) error
- func (e *ForExpression) AddFilter(src core.SourceMap, exp core.Expression) error
- func (e *ForExpression) AddLimit(src core.SourceMap, size, count core.Expression) error
- func (e *ForExpression) AddSort(src core.SourceMap, sorters ...*clauses.SorterExpression) error
- func (e *ForExpression) AddStatement(stmt core.Expression) error
- 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 ¶
func NewDataSource ¶ added in v0.4.0
func NewDataSource( src core.SourceMap, valVariable, keyVariable string, exp core.Expression, ) (collections.Iterable, error)
Types ¶
type BlockExpression ¶
type BlockExpression struct {
// contains filtered or unexported fields
}
func NewBlockExpression ¶
func NewBlockExpression(values collections.Iterable) (*BlockExpression, error)
func (*BlockExpression) Add ¶
func (exp *BlockExpression) Add(stmt core.Expression)
func (*BlockExpression) Iterate ¶ added in v0.5.0
func (exp *BlockExpression) Iterate(ctx context.Context, scope *core.Scope) (collections.Iterator, error)
type BodyExpression ¶ added in v0.5.0
type BodyExpression struct {
// contains filtered or unexported fields
}
func NewBodyExpression ¶ added in v0.5.0
func NewBodyExpression(size int) *BodyExpression
func (*BodyExpression) Add ¶ added in v0.5.0
func (b *BodyExpression) 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 DataSource ¶ added in v0.4.0
type DataSource struct {
// contains filtered or unexported fields
}
func (*DataSource) Iterate ¶ added in v0.4.0
func (ds *DataSource) Iterate(ctx context.Context, scope *core.Scope) (collections.Iterator, error)
type ForExpression ¶
type ForExpression struct {
// contains filtered or unexported fields
}
func NewForExpression ¶
func NewForExpression( src core.SourceMap, dataSource collections.Iterable, predicate core.Expression, distinct, spread bool, ) (*ForExpression, error)
func (*ForExpression) AddCollect ¶ added in v0.4.0
func (*ForExpression) AddFilter ¶
func (e *ForExpression) AddFilter(src core.SourceMap, exp core.Expression) error
func (*ForExpression) AddLimit ¶
func (e *ForExpression) AddLimit(src core.SourceMap, size, count core.Expression) error
func (*ForExpression) AddSort ¶
func (e *ForExpression) AddSort(src core.SourceMap, sorters ...*clauses.SorterExpression) error
func (*ForExpression) AddStatement ¶ added in v0.5.0
func (e *ForExpression) AddStatement(stmt core.Expression) error
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) Arguments ¶ added in v0.4.0
func (e *FunctionCallExpression) Arguments() []core.Expression
func (*FunctionCallExpression) Function ¶ added in v0.4.0
func (e *FunctionCallExpression) Function() core.Function
type MemberExpression ¶
type MemberExpression struct {
// contains filtered or unexported fields
}
func NewMemberExpression ¶
func NewMemberExpression(src core.SourceMap, variableName string, path []core.Expression) (*MemberExpression, error)
type ParameterExpression ¶
type ParameterExpression struct {
// contains filtered or unexported fields
}
func NewParameterExpression ¶
func NewParameterExpression(src core.SourceMap, name string) (*ParameterExpression, 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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.