Documentation ¶
Index ¶
- func Alias(e expressions.Expression, field shared.Field, target expressions.Expression) expressions.Expression
- func NewProjection(node queries.Node, expressions []ProjectionExpression) (queries.Node, error)
- func UnwrapAlias(e ProjectionExpression) (expressions.Expression, string, bool)
- type ProjectionExpression
- type Projector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Alias ¶
func Alias(e expressions.Expression, field shared.Field, target expressions.Expression) expressions.Expression
func NewProjection ¶
func UnwrapAlias ¶
func UnwrapAlias(e ProjectionExpression) (expressions.Expression, string, bool)
Types ¶
type ProjectionExpression ¶
type ProjectionExpression interface { Dealias(name string, fields []shared.Field, alias string) ProjectionExpression Expand(fields []shared.Field) ([]aliasProjection, error) }
func NewAliasProjectionExpression ¶
func NewAliasProjectionExpression(expression expressions.Expression, alias string) ProjectionExpression
func NewTableWildcardProjectionExpression ¶
func NewTableWildcardProjectionExpression(relationName string) ProjectionExpression
func NewWildcardProjectionExpression ¶
func NewWildcardProjectionExpression() ProjectionExpression
type Projector ¶
type Projector struct {
// contains filtered or unexported fields
}
func NewProjector ¶
func (*Projector) ProjectRow ¶
Click to show internal directories.
Click to hide internal directories.