Documentation ¶
Index ¶
- type Array
- func (array *Array) Children() []sql.Expression
- func (array *Array) Eval(ctx *sql.Context, row sql.Row) (any, error)
- func (array *Array) IsNullable() bool
- func (array *Array) Resolved() bool
- func (array *Array) String() string
- func (array *Array) Type() sql.Type
- func (array *Array) WithChildren(children ...sql.Expression) (sql.Expression, error)
- func (array *Array) WithResolvedChildren(children []any) (any, error)
- type BinaryOperator
- func (b *BinaryOperator) Children() []sql.Expression
- func (b *BinaryOperator) Eval(ctx *sql.Context, row sql.Row) (any, error)
- func (b *BinaryOperator) IsNullable() bool
- func (b *BinaryOperator) Left() sql.Expression
- func (b *BinaryOperator) Resolved() bool
- func (b *BinaryOperator) Right() sql.Expression
- func (b *BinaryOperator) String() string
- func (b *BinaryOperator) Type() sql.Type
- func (b *BinaryOperator) WithChildren(children ...sql.Expression) (sql.Expression, error)
- func (b *BinaryOperator) WithResolvedChildren(children []any) (any, error)
- type Cast
- func (c *Cast) Child() sql.Expression
- func (c *Cast) Children() []sql.Expression
- func (c *Cast) Eval(ctx *sql.Context, row sql.Row) (any, error)
- func (c *Cast) IsNullable() bool
- func (c *Cast) Resolved() bool
- func (c *Cast) String() string
- func (c *Cast) Type() sql.Type
- func (c *Cast) WithChildren(children ...sql.Expression) (sql.Expression, error)
- func (c *Cast) WithResolvedChildren(children []any) (any, error)
- type Literal
- func (l *Literal) Children() []sql.Expression
- func (l *Literal) ConformsToLiteralInterface()
- func (l *Literal) Eval(ctx *sql.Context, row sql.Row) (any, error)
- func (l *Literal) GetDoltgresType() pgtypes.DoltgresType
- func (l *Literal) IsNullable() bool
- func (l *Literal) Resolved() bool
- func (l *Literal) String() string
- func (l *Literal) ToVitessLiteral() *vitess.SQLVal
- func (l *Literal) Type() sql.Type
- func (l *Literal) Value() any
- func (l *Literal) WithChildren(children ...sql.Expression) (sql.Expression, error)
- func (l *Literal) WithResolvedChildren(children []any) (any, error)
- type UnaryOperator
- func (b *UnaryOperator) Children() []sql.Expression
- func (b *UnaryOperator) Eval(ctx *sql.Context, row sql.Row) (any, error)
- func (b *UnaryOperator) IsNullable() bool
- func (b *UnaryOperator) Resolved() bool
- func (b *UnaryOperator) String() string
- func (b *UnaryOperator) Type() sql.Type
- func (b *UnaryOperator) WithChildren(children ...sql.Expression) (sql.Expression, error)
- func (b *UnaryOperator) WithResolvedChildren(children []any) (any, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Array ¶
type Array struct {
// contains filtered or unexported fields
}
Array represents an ARRAY[...] expression.
func (*Array) Children ¶
func (array *Array) Children() []sql.Expression
Children implements the sql.Expression interface.
func (*Array) IsNullable ¶
IsNullable implements the sql.Expression interface.
func (*Array) WithChildren ¶
func (array *Array) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the sql.Expression interface.
type BinaryOperator ¶ added in v0.5.0
type BinaryOperator struct {
// contains filtered or unexported fields
}
BinaryOperator represents a VALUE OPERATOR VALUE expression.
func NewBinaryOperator ¶ added in v0.5.0
func NewBinaryOperator(operator framework.Operator) *BinaryOperator
NewBinaryOperator returns a new *BinaryOperator.
func (*BinaryOperator) Children ¶ added in v0.5.0
func (b *BinaryOperator) Children() []sql.Expression
Children implements the sql.Expression interface.
func (*BinaryOperator) IsNullable ¶ added in v0.5.0
func (b *BinaryOperator) IsNullable() bool
IsNullable implements the sql.Expression interface.
func (*BinaryOperator) Left ¶ added in v0.5.0
func (b *BinaryOperator) Left() sql.Expression
Left implements the expression.BinaryExpression interface.
func (*BinaryOperator) Resolved ¶ added in v0.5.0
func (b *BinaryOperator) Resolved() bool
Resolved implements the sql.Expression interface.
func (*BinaryOperator) Right ¶ added in v0.5.0
func (b *BinaryOperator) Right() sql.Expression
Right implements the expression.BinaryExpression interface.
func (*BinaryOperator) String ¶ added in v0.5.0
func (b *BinaryOperator) String() string
String implements the sql.Expression interface.
func (*BinaryOperator) Type ¶ added in v0.5.0
func (b *BinaryOperator) Type() sql.Type
Type implements the sql.Expression interface.
func (*BinaryOperator) WithChildren ¶ added in v0.5.0
func (b *BinaryOperator) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the sql.Expression interface.
func (*BinaryOperator) WithResolvedChildren ¶ added in v0.5.0
func (b *BinaryOperator) WithResolvedChildren(children []any) (any, error)
WithResolvedChildren implements the vitess.InjectableExpression interface.
type Cast ¶ added in v0.5.0
type Cast struct {
// contains filtered or unexported fields
}
Cast represents a VALUE::TYPE expression.
func (*Cast) Child ¶ added in v0.5.0
func (c *Cast) Child() sql.Expression
Child returns the child that is being cast.
func (*Cast) Children ¶ added in v0.5.0
func (c *Cast) Children() []sql.Expression
Children implements the sql.Expression interface.
func (*Cast) IsNullable ¶ added in v0.5.0
IsNullable implements the sql.Expression interface.
func (*Cast) WithChildren ¶ added in v0.5.0
func (c *Cast) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the sql.Expression interface.
type Literal ¶ added in v0.5.0
type Literal struct {
// contains filtered or unexported fields
}
Literal represents a raw literal (number, string, etc.).
func NewBoolLiteral ¶ added in v0.6.0
NewBoolLiteral returns a new *Literal containing a boolean value.
func NewIntegerLiteral ¶ added in v0.5.0
NewIntegerLiteral returns a new *Literal containing an integer (INT2/4/8 or NUMERIC) value.
func NewNumericLiteral ¶ added in v0.6.0
NewNumericLiteral returns a new *Literal containing a NUMERIC value.
func NewStringLiteral ¶ added in v0.5.0
NewStringLiteral returns a new *Literal containing a TEXT value.
func (*Literal) Children ¶ added in v0.5.0
func (l *Literal) Children() []sql.Expression
Children implements the sql.Expression interface.
func (*Literal) ConformsToLiteralInterface ¶ added in v0.5.0
func (l *Literal) ConformsToLiteralInterface()
ConformsToLiteralInterface implements the framework.LiteralInterface interface.
func (*Literal) GetDoltgresType ¶ added in v0.5.0
func (l *Literal) GetDoltgresType() pgtypes.DoltgresType
GetDoltgresType implements the framework.LiteralInterface interface.
func (*Literal) IsNullable ¶ added in v0.5.0
IsNullable implements the sql.Expression interface.
func (*Literal) ToVitessLiteral ¶ added in v0.5.0
ToVitessLiteral returns the literal as a Vitess literal. This is strictly for situations where GMS is hardcoded to expect a Vitess literal. This should only be used as a temporary measure, as the GMS code needs to be updated, or the equivalent functionality should be built into Doltgres (recommend the second approach).
func (*Literal) WithChildren ¶ added in v0.5.0
func (l *Literal) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the sql.Expression interface.
type UnaryOperator ¶ added in v0.5.0
type UnaryOperator struct {
// contains filtered or unexported fields
}
UnaryOperator represents a VALUE OPERATOR VALUE expression.
func NewUnaryOperator ¶ added in v0.5.0
func NewUnaryOperator(operator framework.Operator) *UnaryOperator
NewUnaryOperator returns a new *UnaryOperator.
func (*UnaryOperator) Children ¶ added in v0.5.0
func (b *UnaryOperator) Children() []sql.Expression
Children implements the sql.Expression interface.
func (*UnaryOperator) IsNullable ¶ added in v0.5.0
func (b *UnaryOperator) IsNullable() bool
IsNullable implements the sql.Expression interface.
func (*UnaryOperator) Resolved ¶ added in v0.5.0
func (b *UnaryOperator) Resolved() bool
Resolved implements the sql.Expression interface.
func (*UnaryOperator) String ¶ added in v0.5.0
func (b *UnaryOperator) String() string
String implements the sql.Expression interface.
func (*UnaryOperator) Type ¶ added in v0.5.0
func (b *UnaryOperator) Type() sql.Type
Type implements the sql.Expression interface.
func (*UnaryOperator) WithChildren ¶ added in v0.5.0
func (b *UnaryOperator) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the sql.Expression interface.
func (*UnaryOperator) WithResolvedChildren ¶ added in v0.5.0
func (b *UnaryOperator) WithResolvedChildren(children []any) (any, error)
WithResolvedChildren implements the vitess.InjectableExpression interface.