package
1.0.1
Repository: https://github.com/mushiyu/go-mysql-server.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Inspect traverses the plan in depth-first order: It starts by calling f(expr); expr must not be nil.
IsBinary returns whether the expression is binary or not.
IsUnary returns whether the expression is unary or not.
JoinAnd joins several expressions with And.
NewAlias returns a new Alias node.
NewAnd creates a new And expression.
NewArithmetic creates a new Arithmetic sql.Expression.
NewBetween creates a new Between expression.
NewBitAnd creates a new Arithmetic & sql.Expression.
NewBitOr creates a new Arithmetic | sql.Expression.
NewBitXor creates a new Arithmetic ^ sql.Expression.
NewCase returns an new Case expression.
NewConvert creates a new Convert expression.
NewDefaultColumn creates a new NewDefaultColumn expression.
NewDiv creates a new Arithmetic / sql.Expression.
NewEquals returns a new Equals expression.
NewGetField creates a GetField expression.
NewGetFieldWithTable creates a GetField expression with table name.
NewGetSessionField creates a new GetSessionField expression.
NewGreaterThan creates a new GreaterThan expression.
NewGreaterThanOrEqual creates a new GreaterThanOrEqual.
NewIn creates a In expression.
NewIntDiv creates a new Arithmetic div sql.Expression.
NewInterval creates a new interval expression.
NewIsFalse creates a new IsTrue expression with its boolean sense inverted (IsFalse, effectively).
NewIsNull creates a new IsNull expression.
NewIsTrue creates a new IsTrue expression.
NewLessThan creates a new LessThan expression.
NewLessThanOrEqual creates a LessThanOrEqual expression.
NewLike creates a new LIKE expression.
NewLiteral creates a new Literal expression.
NewMinus creates a new Arithmetic - sql.Expression.
NewMod creates a new Arithmetic % sql.Expression.
NewMult creates a new Arithmetic * sql.Expression.
NewNot returns a new Not node.
NewNotIn creates a In expression.
NewOr creates a new Or expression.
NewPlus creates a new Arithmetic + sql.Expression.
NewQualifiedStar returns a new star expression only for a specific table.
NewRegexp creates a new Regexp expression.
NewShiftLeft creates a new Arithmetic << sql.Expression.
NewShiftRight creates a new Arithmetic >> sql.Expression.
NewStar returns a new Star expression.
NewTuple creates a new Tuple expression.
NewUnaryMinus creates a new UnaryMinus expression node.
NewUnresolvedColumn creates a new UnresolvedColumn expression.
NewUnresolvedFunction creates a new UnresolvedFunction expression.
NewUnresolvedQualifiedColumn creates a new UnresolvedColumn expression with a table qualifier.
TransformUp applies a transformation function to the given expression from the bottom up.
Walk traverses the plan tree in depth-first order.

# Constants

ConvertToBinary is a conversion to binary.
ConvertToChar is a conversion to char.
ConvertToDate is a conversion to date.
ConvertToDatetime is a conversion to datetune.
ConvertToDecimal is a conversion to decimal.
ConvertToJSON is a conversion to json.
ConvertToNChar is a conversion to nchar.
ConvertToSigned is a conversion to signed.
ConvertToUnsigned is a conversion to unsigned.
No description provided by the author
No description provided by the author

# Variables

ErrConvertExpression is returned when a conversion is not possible.
ErrIndexOutOfBounds is returned when the field index is out of the bounds.
ErrInvalidOperandColumns is returned when the columns in the left operand and the elements of the right operand don't match.
ErrNilOperand ir returned if some or both of the comparison's operands is nil.
ErrUnsupportedInOperand is returned when there is an invalid righthand operand in an IN operator.

# Structs

Alias is a node that gives a name to an expression.
And checks whether two expressions are true.
Arithmetic expressions (+, -, *, /, ...).
Between checks a value is between two given values.
BinaryExpression is an expression that has two children.
Case is an expression that returns the value of one of its branches when a condition is met.
CaseBranch is a single branch of a case expression.
Convert represent a CAST(x AS T) or CONVERT(x, T) operation that casts x expression to type T.
DefaultColumn is an default expression of a column that is not yet resolved.
Equals is a comparison that checks an expression is equal to another.
GetField is an expression to get the field of a table.
GetSessionField is an expression that returns the value of a session configuration.
GreaterThan is a comparison that checks an expression is greater than another.
GreaterThanOrEqual is a comparison that checks an expression is greater or equal to another.
In is a comparison that checks an expression is inside a list of expressions.
Interval defines a time duration.
IsNull is an expression that checks if an expression is null.
IsTrue is an expression that checks if an expression is true.
LessThan is a comparison that checks an expression is less than another.
LessThanOrEqual is a comparison that checks an expression is equal or lower than another.
Like performs pattern matching against two strings.
Literal represents a literal expression (string, number, bool, ...).
Not is a node that negates an expression.
NotIn is a comparison that checks an expression is not inside a list of expressions.
Or checks whether one of the two given expressions is true.
Regexp is a comparison that checks an expression matches a regexp.
Star represents the selection of all available fields.
TimeDelta is the difference between a time and another time.
UnaryExpression is an expression that has only one children.
UnaryMinus is an unary minus operator.
UnresolvedColumn is an expression of a column that is not yet resolved.
UnresolvedFunction represents a function that is not yet resolved.

# Interfaces

Comparer implements a comparison expression.
Visitor visits exprs in the plan.

# Type aliases

Tuple is a fixed-size collection of expressions.