package
1.0.0
Repository: https://github.com/xelabs/go-mysqlstack.git
Documentation: pkg.go.dev

# Functions

BindVariableToValue converts a bind var into a Value.
BuildBindVariable builds a *querypb.BindVariable from a valid input type.
BuildBindVariables builds a map[string]*querypb.BindVariable from a map[string]interface{}.
BuildConverted is like BuildValue except that it tries to convert a string or []byte to an integral if the target type is an integral.
BuildIntegral builds an integral type from a string representation.
BuildValue builds a value from any go type.
BytesBindVariable converts a []byte to a bind var.
Cast converts a Value to the target type.
CastToBool used to cast the Value to a boolean.
CompareFloat64 returns an integer comparing the float64 x to y.
CompareInt64 returns an integer comparing the int64 x to y.
CompareUint64 returns an integer comparing the uint64 x to y.
CopyBindVariables returns a shallow-copy of the given bindVariables map.
Float32BindVariable converts a float32 to a bind var.
Float64BindVariable converts a float64 to a bind var.
GetResults will be called when all data have been processed.
Int32BindVariable converts an int32 to a bind var.
Int64BindVariable converts an int64 to a bind var.
IsBinary returns true if querypb.Type is a binary.
IsFloat returns true is querypb.Type is a floating point.
IsIntegral returns true if querypb.Type is an integral (signed/unsigned) that can be represented using up to 64 binary bits.
IsQuoted returns true if querypb.Type is a quoted text or binary.
IsSigned returns true if querypb.Type is a signed integral.
IsTemporal returns true if Value is time type.
IsText returns true if querypb.Type is a text.
IsUnsigned returns true if querypb.Type is an unsigned integral.
MakeString makes a VarBinary Value.
MakeTrusted makes a new Value based on the type.
Max returns the maximum of v1 and v2.
Min returns the minimum of v1 and v2.
MySQLToType computes the vitess type from mysql type and flags.
NewAggEvalCtxs new evalCtxs.
NewAggregation new an Aggregetion.
NewFloat32 builds an Float64 Value.
NewFloat64 builds an Float64 Value.
NewInt32 builds an Int64 Value.
NewInt64 builds an Int64 Value.
NewIntegral builds an integral type from a string representation.
NewUint64 builds an Uint64 Value.
NewValue builds a Value using typ and val.
NewVarBinary builds a VarBinary Value.
NewVarChar builds a VarChar Value.
NullsafeAdd adds two Values in a null-safe manner.
NullsafeCompare returns 0 if v1==v2, -1 if v1<v2, and 1 if v1>v2.
NullsafeDiv used to divide two Values in a null-safe manner.
NullsafeSum adds v to sum, used in 'sum' aggregation.
No description provided by the author
ProtoToValue converts a *querypb.Value to a Value.
StringBindVariable converts a string to a bind var.
TypeToMySQL returns the equivalent mysql type and flag for a vitess type.
Uint64BindVariable converts a uint64 to a bind var.
ValidateBindVariable returns an error if the bind variable has inconsistent fields.
ValidateBindVariables validates a map[string]*querypb.BindVariable.
ValueBindVariable converts a Value to a bind var.
ValueFromBytes builds a Value using typ and val.
ValueToProto converts Value to a *querypb.Value.

# Constants

AggrTypeAvg enum.
AggrTypeCount enum.
AggrTypeGroupBy enum.
AggrTypeMax enum.
AggrTypeMin enum.
AggrTypeNull enum.
AggrTypeSum enum.
Vitess data types.
Vitess data types.
Vitess data types.
Vitess data types.
Vitess data types.
Vitess data types.
Vitess data types.
DecimalLongLongDigits decimal longlong digits.
DoubleDigits double decimal precision.
Vitess data types.
Vitess data types.
Vitess data types.
Vitess data types.
FloatDigits float decimal precision.
Vitess data types.
Vitess data types.
Vitess data types.
Vitess data types.
Vitess data types.
Vitess data types.
Vitess data types.
RStateFields enum.
RStateFinished enum.
RStateNone enum.
RStateRows enum.
Vitess data types.
Vitess data types.
Vitess data types.
Vitess data types.
Vitess data types.
Vitess data types.
Vitess data types.
Vitess data types.
Vitess data types.
Vitess data types.
Vitess data types.
Vitess data types.
Vitess data types.
Vitess data types.

# Variables

DontEscape tells you if a character should not be escaped.
NULL represents the NULL value.
NullBindVariable is a bindvar with NULL value.
SQLDecodeMap is the reverse of SQLEncodeMap.
SQLEncodeMap specifies how to escape binary data with '\'.

# Structs

AggEvaluateContext is used to store intermediate result when calculating aggregate functions.
Aggregation operator.
PlanValue represents a value or a list of values for a column that will later be resolved using bind vars and used to perform plan actions like generating the final query or deciding on a route.
Result represents a query result.
Value can store any SQL value.

# Interfaces

BinWriter interface is used for encoding values.
ResultStream is an interface for receiving Result.

# Type aliases

AggrType type.
ResultState enum.
Row operations.
Values represents the array of Value.