Documentation ¶
Index ¶
- type Avg
- func (a *Avg) Eval(ctx *sql.Context, buffer sql.Row) (interface{}, error)
- func (a *Avg) IsNullable() bool
- func (a *Avg) Merge(ctx *sql.Context, buffer, partial sql.Row) error
- func (a *Avg) NewBuffer() sql.Row
- func (a *Avg) Resolved() bool
- func (a *Avg) String() string
- func (a *Avg) Type() sql.Type
- func (a *Avg) Update(ctx *sql.Context, buffer, row sql.Row) error
- func (a *Avg) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Count
- func (c *Count) Eval(ctx *sql.Context, buffer sql.Row) (interface{}, error)
- func (c *Count) IsNullable() bool
- func (c *Count) Merge(ctx *sql.Context, buffer, partial sql.Row) error
- func (c *Count) NewBuffer() sql.Row
- func (c *Count) Resolved() bool
- func (c *Count) String() string
- func (c *Count) Type() sql.Type
- func (c *Count) Update(ctx *sql.Context, buffer, row sql.Row) error
- func (c *Count) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type CountDistinct
- func (c *CountDistinct) Eval(ctx *sql.Context, buffer sql.Row) (interface{}, error)
- func (c *CountDistinct) IsNullable() bool
- func (c *CountDistinct) Merge(ctx *sql.Context, buffer, partial sql.Row) error
- func (c *CountDistinct) NewBuffer() sql.Row
- func (c *CountDistinct) Resolved() bool
- func (c *CountDistinct) String() string
- func (c *CountDistinct) Type() sql.Type
- func (c *CountDistinct) Update(ctx *sql.Context, buffer, row sql.Row) error
- func (c *CountDistinct) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type First
- func (f *First) Eval(ctx *sql.Context, buffer sql.Row) (interface{}, error)
- func (f *First) Merge(ctx *sql.Context, buffer, partial sql.Row) error
- func (f *First) NewBuffer() sql.Row
- func (f *First) String() string
- func (f *First) Type() sql.Type
- func (f *First) Update(ctx *sql.Context, buffer, row sql.Row) error
- func (f *First) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Last
- func (l *Last) Eval(ctx *sql.Context, buffer sql.Row) (interface{}, error)
- func (l *Last) Merge(ctx *sql.Context, buffer, partial sql.Row) error
- func (l *Last) NewBuffer() sql.Row
- func (l *Last) String() string
- func (l *Last) Type() sql.Type
- func (l *Last) Update(ctx *sql.Context, buffer, row sql.Row) error
- func (l *Last) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Max
- func (m *Max) Eval(ctx *sql.Context, buffer sql.Row) (interface{}, error)
- func (m *Max) IsNullable() bool
- func (m *Max) Merge(ctx *sql.Context, buffer, partial sql.Row) error
- func (m *Max) NewBuffer() sql.Row
- func (m *Max) Resolved() bool
- func (m *Max) String() string
- func (m *Max) Type() sql.Type
- func (m *Max) Update(ctx *sql.Context, buffer, row sql.Row) error
- func (m *Max) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Min
- func (m *Min) Eval(ctx *sql.Context, buffer sql.Row) (interface{}, error)
- func (m *Min) IsNullable() bool
- func (m *Min) Merge(ctx *sql.Context, buffer, partial sql.Row) error
- func (m *Min) NewBuffer() sql.Row
- func (m *Min) Resolved() bool
- func (m *Min) String() string
- func (m *Min) Type() sql.Type
- func (m *Min) Update(ctx *sql.Context, buffer, row sql.Row) error
- func (m *Min) WithChildren(children ...sql.Expression) (sql.Expression, error)
- type Sum
- func (m *Sum) Eval(ctx *sql.Context, buffer sql.Row) (interface{}, error)
- func (m *Sum) Merge(ctx *sql.Context, buffer, partial sql.Row) error
- func (m *Sum) NewBuffer() sql.Row
- func (m *Sum) String() string
- func (m *Sum) Type() sql.Type
- func (m *Sum) Update(ctx *sql.Context, buffer, row sql.Row) error
- func (m *Sum) WithChildren(children ...sql.Expression) (sql.Expression, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Avg ¶
type Avg struct {
expression.UnaryExpression
}
Avg node to calculate the average from numeric column
func (*Avg) Eval ¶
Eval implements AggregationExpression interface. (AggregationExpression[Expression]])
func (*Avg) IsNullable ¶
IsNullable implements AggregationExpression interface. (AggregationExpression[Expression]])
func (*Avg) NewBuffer ¶
NewBuffer implements AggregationExpression interface. (AggregationExpression)
func (*Avg) Resolved ¶
Resolved implements AggregationExpression interface. (AggregationExpression[Expression[Resolvable]]])
func (*Avg) Type ¶
Type implements AggregationExpression interface. (AggregationExpression[Expression]])
func (*Avg) WithChildren ¶
func (a *Avg) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Count ¶
type Count struct {
expression.UnaryExpression
}
Count node to count how many rows are in the result set.
func (*Count) IsNullable ¶
IsNullable returns whether the return value can be null.
func (*Count) WithChildren ¶
func (c *Count) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type CountDistinct ¶
type CountDistinct struct {
expression.UnaryExpression
}
CountDistinct node to count how many rows are in the result set.
func NewCountDistinct ¶
func NewCountDistinct(e sql.Expression) *CountDistinct
NewCountDistinct creates a new CountDistinct node.
func (*CountDistinct) IsNullable ¶
func (c *CountDistinct) IsNullable() bool
IsNullable returns whether the return value can be null.
func (*CountDistinct) NewBuffer ¶
func (c *CountDistinct) NewBuffer() sql.Row
NewBuffer creates a new buffer for the aggregation.
func (*CountDistinct) Resolved ¶
func (c *CountDistinct) Resolved() bool
Resolved implements the Expression interface.
func (*CountDistinct) String ¶
func (c *CountDistinct) String() string
func (*CountDistinct) Type ¶
func (c *CountDistinct) Type() sql.Type
Type returns the type of the result.
func (*CountDistinct) WithChildren ¶
func (c *CountDistinct) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type First ¶
type First struct {
expression.UnaryExpression
}
First agregation returns the first of all values in the selected column. It implements the Aggregation interface.
func (*First) WithChildren ¶
func (f *First) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the sql.Expression interface.
type Last ¶
type Last struct {
expression.UnaryExpression
}
Last agregation returns the last of all values in the selected column. It implements the Aggregation interface.
func (*Last) WithChildren ¶
func (l *Last) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the sql.Expression interface.
type Max ¶
type Max struct {
expression.UnaryExpression
}
Max agregation returns the greatest value of the selected column. It implements the Aggregation interface
func (*Max) IsNullable ¶
IsNullable returns whether the return value can be null.
func (*Max) WithChildren ¶
func (m *Max) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Min ¶
type Min struct {
expression.UnaryExpression
}
Min aggregation returns the smallest value of the selected column. It implements the Aggregation interface
func (*Min) IsNullable ¶
IsNullable returns whether the return value can be null.
func (*Min) WithChildren ¶
func (m *Min) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.
type Sum ¶
type Sum struct {
expression.UnaryExpression
}
Sum agregation returns the sum of all values in the selected column. It implements the Aggregation interface.
func (*Sum) WithChildren ¶
func (m *Sum) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the Expression interface.