Versions in this module Expand all Collapse all v0 v0.1.1 Jan 2, 2022 Changes in this version + var ErrEvalUnsupportedOnAggregation = errors.NewKind(...) + var ErrUnsupportedJSONFunction = errors.NewKind("unsupported JSON function: %s") + func NewEmptyGroupConcat() sql.Expression + func NewJSONObjectAgg(key, value sql.Expression) sql.Expression + type Avg struct + func NewAvg(e sql.Expression) *Avg + func (a *Avg) Description() string + func (a *Avg) Eval(ctx *sql.Context, row sql.Row) (interface{}, error) + func (a *Avg) FunctionName() string + func (a *Avg) IsNullable() bool + func (a *Avg) NewBuffer() (sql.AggregationBuffer, error) + func (a *Avg) String() string + func (a *Avg) Type() sql.Type + func (a *Avg) WithChildren(children ...sql.Expression) (sql.Expression, error) + type Count struct + func NewCount(e sql.Expression) *Count + func (c *Count) Description() string + func (c *Count) Eval(ctx *sql.Context, row sql.Row) (interface{}, error) + func (c *Count) FunctionName() string + func (c *Count) IsNullable() bool + func (c *Count) NewBuffer() (sql.AggregationBuffer, error) + func (c *Count) Resolved() bool + func (c *Count) String() string + func (c *Count) Type() sql.Type + func (c *Count) WithChildren(children ...sql.Expression) (sql.Expression, error) + type CountDistinct struct + func NewCountDistinct(e sql.Expression) *CountDistinct + func (c *CountDistinct) Description() string + func (c *CountDistinct) Eval(ctx *sql.Context, row sql.Row) (interface{}, error) + func (c *CountDistinct) FunctionName() string + func (c *CountDistinct) IsNullable() bool + func (c *CountDistinct) NewBuffer() (sql.AggregationBuffer, error) + func (c *CountDistinct) Resolved() bool + func (c *CountDistinct) String() string + func (c *CountDistinct) Type() sql.Type + func (c *CountDistinct) WithChildren(children ...sql.Expression) (sql.Expression, error) + type First struct + func NewFirst(e sql.Expression) *First + func (f *First) Description() string + func (f *First) Eval(ctx *sql.Context, row sql.Row) (interface{}, error) + func (f *First) FunctionName() string + func (f *First) NewBuffer() (sql.AggregationBuffer, error) + func (f *First) String() string + func (f *First) Type() sql.Type + func (f *First) WithChildren(children ...sql.Expression) (sql.Expression, error) + type GroupConcat struct + func NewGroupConcat(distinct string, orderBy sql.SortFields, separator string, ...) (*GroupConcat, error) + func (g *GroupConcat) Children() []sql.Expression + func (g *GroupConcat) Description() string + func (g *GroupConcat) Eval(ctx *sql.Context, row sql.Row) (interface{}, error) + func (g *GroupConcat) FunctionName() string + func (g *GroupConcat) IsNullable() bool + func (g *GroupConcat) NewBuffer() (sql.AggregationBuffer, error) + func (g *GroupConcat) Resolved() bool + func (g *GroupConcat) String() string + func (g *GroupConcat) Type() sql.Type + func (g *GroupConcat) WithChildren(children ...sql.Expression) (sql.Expression, error) + type JSONArrayAgg struct + func NewJSONArrayAgg(arg sql.Expression) *JSONArrayAgg + func (j *JSONArrayAgg) Description() string + func (j *JSONArrayAgg) Eval(ctx *sql.Context, row sql.Row) (interface{}, error) + func (j *JSONArrayAgg) FunctionName() string + func (j *JSONArrayAgg) IsNullable() bool + func (j *JSONArrayAgg) IsUnsupported() bool + func (j *JSONArrayAgg) NewBuffer() (sql.AggregationBuffer, error) + func (j *JSONArrayAgg) Resolved() bool + func (j *JSONArrayAgg) String() string + func (j *JSONArrayAgg) Type() sql.Type + func (j *JSONArrayAgg) WithChildren(children ...sql.Expression) (sql.Expression, error) + type JSONObjectAgg struct + func (j JSONObjectAgg) Children() []sql.Expression + func (j JSONObjectAgg) Description() string + func (j JSONObjectAgg) Eval(ctx *sql.Context, row sql.Row) (interface{}, error) + func (j JSONObjectAgg) FunctionName() string + func (j JSONObjectAgg) IsNullable() bool + func (j JSONObjectAgg) IsUnsupported() bool + func (j JSONObjectAgg) NewBuffer() (sql.AggregationBuffer, error) + func (j JSONObjectAgg) Resolved() bool + func (j JSONObjectAgg) String() string + func (j JSONObjectAgg) Type() sql.Type + func (j JSONObjectAgg) WithChildren(children ...sql.Expression) (sql.Expression, error) + type Last struct + func NewLast(e sql.Expression) *Last + func (l *Last) Description() string + func (l *Last) Eval(ctx *sql.Context, row sql.Row) (interface{}, error) + func (l *Last) FunctionName() string + func (l *Last) NewBuffer() (sql.AggregationBuffer, error) + func (l *Last) String() string + func (l *Last) Type() sql.Type + func (l *Last) WithChildren(children ...sql.Expression) (sql.Expression, error) + type Max struct + func NewMax(e sql.Expression) *Max + func (m *Max) DebugString() string + func (m *Max) Description() string + func (m *Max) Eval(ctx *sql.Context, row sql.Row) (interface{}, error) + func (m *Max) FunctionName() string + func (m *Max) IsNullable() bool + func (m *Max) NewBuffer() (sql.AggregationBuffer, error) + func (m *Max) String() string + func (m *Max) Type() sql.Type + func (m *Max) WithChildren(children ...sql.Expression) (sql.Expression, error) + type Min struct + func NewMin(e sql.Expression) *Min + func (m *Min) Description() string + func (m *Min) Eval(ctx *sql.Context, row sql.Row) (interface{}, error) + func (m *Min) FunctionName() string + func (m *Min) IsNullable() bool + func (m *Min) NewBuffer() (sql.AggregationBuffer, error) + func (m *Min) String() string + func (m *Min) Type() sql.Type + func (m *Min) WithChildren(children ...sql.Expression) (sql.Expression, error) + type Sum struct + func NewSum(e sql.Expression) *Sum + func (m *Sum) Description() string + func (m *Sum) Eval(ctx *sql.Context, row sql.Row) (interface{}, error) + func (m *Sum) FunctionName() string + func (m *Sum) NewBuffer() (sql.AggregationBuffer, error) + func (m *Sum) String() string + func (m *Sum) Type() sql.Type + func (m *Sum) WithChildren(children ...sql.Expression) (sql.Expression, error)