expression

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 NewArray

func NewArray(expressions []sql.Expression, unresolvedChildren vitess.Exprs, unresolvedIndexes []int, coercedType sql.Type) (*Array, error)

NewArray returns a new *Array.

func (*Array) Children

func (array *Array) Children() []sql.Expression

Children implements the sql.Expression interface.

func (*Array) Eval

func (array *Array) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)

Eval implements the sql.Expression interface.

func (*Array) IsNullable

func (array *Array) IsNullable() bool

IsNullable implements the sql.Expression interface.

func (*Array) Resolved

func (array *Array) Resolved() bool

Resolved implements the sql.Expression interface.

func (*Array) String

func (array *Array) String() string

String implements the sql.Expression interface.

func (*Array) Type

func (array *Array) Type() sql.Type

Type implements the sql.Expression interface.

func (*Array) WithChildren

func (array *Array) WithChildren(children ...sql.Expression) (sql.Expression, error)

WithChildren implements the sql.Expression interface.

func (*Array) WithResolvedChildren

func (array *Array) WithResolvedChildren(children []any) (any, error)

WithResolvedChildren implements the vitess.InjectableExpression interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL