Versions in this module Expand all Collapse all v0 v0.16.0 Dec 25, 2023 Changes in this version + type Avg struct + Expr expr.Expr + func (s *Avg) Aggregator() expr.Aggregator + func (s *Avg) Eval(env *environment.Environment) (types.Value, error) + func (s *Avg) IsEqual(other expr.Expr) bool + func (s *Avg) Params() []expr.Expr + func (s *Avg) String() string + type AvgAggregator struct + Avg float64 + Counter int64 + Fn *Avg + func (s *AvgAggregator) Aggregate(env *environment.Environment) error + func (s *AvgAggregator) Eval(_ *environment.Environment) (types.Value, error) + func (s *AvgAggregator) String() string + type Coalesce struct + Exprs []expr.Expr + func (c *Coalesce) Eval(e *environment.Environment) (types.Value, error) + func (c *Coalesce) Params() []expr.Expr + func (c *Coalesce) String() string + type Count struct + Count int64 + Expr expr.Expr + func NewCount(e expr.Expr) *Count + func (c *Count) Aggregator() expr.Aggregator + func (c *Count) Eval(env *environment.Environment) (types.Value, error) + func (c *Count) IsEqual(other expr.Expr) bool + func (c *Count) Params() []expr.Expr + func (c *Count) String() string + type CountAggregator struct + Count int64 + Fn *Count + func (c *CountAggregator) Aggregate(env *environment.Environment) error + func (c *CountAggregator) Eval(_ *environment.Environment) (types.Value, error) + func (c *CountAggregator) String() string + type Definition interface + Arity func() int + Function func(...expr.Expr) (expr.Function, error) + Name func() string + String func() string + type Definitions map[string]Definition + func BuiltinDefinitions() Definitions + func MathFunctions() Definitions + func ObjectsDefinitions() Definitions + func StringsDefinitions() Definitions + type Len struct + Expr expr.Expr + func (s *Len) Eval(env *environment.Environment) (types.Value, error) + func (s *Len) IsEqual(other expr.Expr) bool + func (s *Len) Params() []expr.Expr + func (s *Len) String() string + type Lower struct + Expr expr.Expr + func (s *Lower) Eval(env *environment.Environment) (types.Value, error) + func (s *Lower) IsEqual(other expr.Expr) bool + func (s *Lower) Params() []expr.Expr + func (s *Lower) String() string + type Max struct + Expr expr.Expr + func (m *Max) Aggregator() expr.Aggregator + func (m *Max) Eval(env *environment.Environment) (types.Value, error) + func (m *Max) IsEqual(other expr.Expr) bool + func (m *Max) Params() []expr.Expr + func (m *Max) String() string + type MaxAggregator struct + Fn *Max + Max types.Value + func (m *MaxAggregator) Aggregate(env *environment.Environment) error + func (m *MaxAggregator) Eval(_ *environment.Environment) (types.Value, error) + func (m *MaxAggregator) String() string + type Min struct + Expr expr.Expr + func (m *Min) Aggregator() expr.Aggregator + func (m *Min) Eval(env *environment.Environment) (types.Value, error) + func (m *Min) IsEqual(other expr.Expr) bool + func (m *Min) Params() []expr.Expr + func (m *Min) String() string + type MinAggregator struct + Fn *Min + Min types.Value + func (m *MinAggregator) Aggregate(env *environment.Environment) error + func (m *MinAggregator) Eval(_ *environment.Environment) (types.Value, error) + func (m *MinAggregator) String() string + type Now struct + func (n *Now) Eval(env *environment.Environment) (types.Value, error) + func (n *Now) IsEqual(other expr.Expr) bool + func (n *Now) Params() []expr.Expr + func (n *Now) String() string + type ObjectFields struct + Expr expr.Expr + func (s *ObjectFields) Eval(env *environment.Environment) (types.Value, error) + func (s *ObjectFields) IsEqual(other expr.Expr) bool + func (s *ObjectFields) Params() []expr.Expr + func (s *ObjectFields) String() string + type PK struct + func (*PK) Params() []expr.Expr + func (k *PK) Eval(env *environment.Environment) (types.Value, error) + func (k *PK) IsEqual(other expr.Expr) bool + func (k *PK) String() string + type Packages map[string]Definitions + func DefaultPackages() Packages + func (t Packages) GetFunc(pkg string, fname string) (Definition, error) + type ScalarDefinition struct + func NewScalarDefinition(name string, arity int, callFn func(...types.Value) (types.Value, error)) *ScalarDefinition + func (fd *ScalarDefinition) Arity() int + func (fd *ScalarDefinition) Function(args ...expr.Expr) (expr.Function, error) + func (fd *ScalarDefinition) Name() string + func (fd *ScalarDefinition) String() string + type ScalarFunction struct + func (sf *ScalarFunction) Eval(env *environment.Environment) (types.Value, error) + func (sf *ScalarFunction) Params() []expr.Expr + func (sf *ScalarFunction) String() string + type Sum struct + Expr expr.Expr + func (s *Sum) Aggregator() expr.Aggregator + func (s *Sum) Eval(env *environment.Environment) (types.Value, error) + func (s *Sum) IsEqual(other expr.Expr) bool + func (s *Sum) Params() []expr.Expr + func (s *Sum) String() string + type SumAggregator struct + Fn *Sum + SumF *float64 + SumI *int64 + func (s *SumAggregator) Aggregate(env *environment.Environment) error + func (s *SumAggregator) Eval(_ *environment.Environment) (types.Value, error) + func (s *SumAggregator) String() string + type Trim struct + Expr []expr.Expr + Name string + TrimFunc TrimFunc + func (s *Trim) Eval(env *environment.Environment) (types.Value, error) + func (s *Trim) IsEqual(other expr.Expr) bool + func (s *Trim) Params() []expr.Expr + func (s *Trim) String() string + type TrimFunc func(string, string) string + type TypeOf struct + Expr expr.Expr + func (t *TypeOf) Eval(env *environment.Environment) (types.Value, error) + func (t *TypeOf) IsEqual(other expr.Expr) bool + func (t *TypeOf) Params() []expr.Expr + func (t *TypeOf) String() string + type Upper struct + Expr expr.Expr + func (s *Upper) Eval(env *environment.Environment) (types.Value, error) + func (s *Upper) IsEqual(other expr.Expr) bool + func (s *Upper) Params() []expr.Expr + func (s *Upper) String() string