Versions in this module Expand all Collapse all v0 v0.8.0 Dec 30, 2020 Changes in this version + var AggregatorRegex = regexp.MustCompile(`^<\?([LS][F_][T_])|(AG[GT])@.+`) + var ParamRegex = regexp.MustCompile(`@{([^(@{)^}]+)}`) + func CanBeVariableName(s string) (bool, []string) + func FindAllUDFStrings(query string) ([][]string, error) + type AggregatorTypeOfUDF int + const GenericAggregator + const ListAggregator + const NotAnAggregator + const SetAggregator + type ExprScriptInstance struct + func (exprInstance *ExprScriptInstance) Body() string + func (exprInstance *ExprScriptInstance) Dialect() string + func (exprInstance *ExprScriptInstance) EvalFromString(expressionString string) (interface{}, error) + func (exprInstance *ExprScriptInstance) ScriptEval(scriptEnvironment map[string]interface{}) (interface{}, error) + type JSScriptInstance struct + func (jsScriptInstance *JSScriptInstance) Body() string + func (jsScriptInstance *JSScriptInstance) Dialect() string + func (jsScriptInstance *JSScriptInstance) EvalFromString(expressionString string) (interface{}, error) + func (jsScriptInstance *JSScriptInstance) ScriptEval(scriptEnvironment map[string]interface{}) (interface{}, error) + type ScriptInstance interface + Body func() string + Dialect func() string + EvalFromString func(expressionString string) (interface{}, error) + ScriptEval func(scriptEnvironment map[string]interface{}) (interface{}, error) + func GetScriptInstance(langString string, bodyString string) ScriptInstance + type ScriptUDF struct + Id string + Script ScriptInstance + UdfType TypeOfUDF + func MacroProcessor(query string, funcNumStart int, langDialect string) (string, []ScriptUDF) + func (s *ScriptUDF) AsFunction() sql.FunctionN + func (s *ScriptUDF) Fn(args ...sql.Expression) (sql.Expression, error) + type Scriptable struct + Meta *ScriptUDF + func (a *Scriptable) Children() []sql.Expression + func (a *Scriptable) Eval(ctx *sql.Context, buffer sql.Row) (interface{}, error) + func (a *Scriptable) EvalScript(ctx *sql.Context, row sql.Row, partial interface{}) (interface{}, error) + func (a *Scriptable) IsNullable() bool + func (a *Scriptable) Merge(ctx *sql.Context, buffer, partial sql.Row) error + func (a *Scriptable) NewBuffer() sql.Row + func (a *Scriptable) Resolved() bool + func (a *Scriptable) String() string + func (a *Scriptable) Type() sql.Type + func (a *Scriptable) Update(ctx *sql.Context, buffer, row sql.Row) error + func (a *Scriptable) WithChildren(children ...sql.Expression) (sql.Expression, error) + type TypeOfUDF struct + AggregatorType AggregatorTypeOfUDF + Flatten bool + IsAggregator bool + Transpose bool + func AggregatorType(macroStart string) (interface{}, TypeOfUDF)