package
3.0.0-rc.3+incompatible
Repository: https://github.com/vitessio/vitess.git
Documentation: pkg.go.dev

# Functions

BindVariablesEqual compares two maps of bind variables.
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{}.
BytesBindVariable converts a []byte to a bind var.
Cast converts a Value to the target type.
CopyBindVariables returns a shallow-copy of the given bindVariables map.
CopyRow makes a copy of the row.
CustomProto3ToResult converts a proto3 Result to an internal data structure.
EventTokenMinimum returns an event token that is guaranteed to happen before both provided EventToken objects.
FieldsEqual compares two arrays of fields.
Float64BindVariable converts a float64 to a bind var.
FormatBindVariables returns a string representation of the bind variables.
IncludeFieldsOrDefault normalizes the passed Execution Options.
Int32BindVariable converts an int32 to a bind var.
Int64BindVariable converts an int64 to a bind var.
InterfaceToValue builds a value from a go type.
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.
IsText returns true if querypb.Type is a text.
IsUnsigned returns true if querypb.Type is an unsigned integral.
MakeRowTrusted converts a *querypb.Row to []Value based on the types in fields.
MakeTestFields builds a []*querypb.Field for testing.
MakeTestResult builds a *sqltypes.Result object for testing.
MakeTestStreamingResults builds a list of results for streaming.
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.
NewFloat64 builds an Float64 Value.
NewInt32 builds an Int64 Value.
NewInt64 builds an Int64 Value.
NewIntegral builds an integral type from a string representation.
NewUint32 builds an Uint32 Value.
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.
PrintResults prints []*Results into a string.
Proto3QueryResponsesEqual compares two arrays of proto3 QueryResponse.
Proto3ResultsEqual compares two arrays of proto3 Result.
Proto3ToQueryReponses converts proto3 queryResponse to []QueryResponse.
Proto3ToResult converts a proto3 Result to an internal data structure.
Proto3ToResults converts proto3 results to []Result.
Proto3ValuesEqual compares two arrays of proto3 Value.
ProtoToValue converts a *querypb.Value to a Value.
QueryResponsesEqual compares two arrays of QueryResponse.
QueryResponsesToProto3 converts []QueryResponse to proto3.
ResolveRows resolves a []PlanValue as rows based on the supplied bindvars.
ResultsEqual compares two arrays of Result.
ResultsToProto3 converts []Result to proto3.
ResultToProto3 converts Result to proto3.
RowsToProto3 converts [][]Value to proto3.
RowToProto3 converts []Value to proto3.
SplitQueryResponsePartsEqual compares two arrays of SplitQueryResponse_Part.
StringBindVariable converts a string to a bind var.
TestBindVariable makes a *querypb.BindVariable from an interface{}.It panics on invalid input.
TestValue builds a Value from typ and val.
ToFloat64 converts Value to float64.
ToInt64 converts Value to int64.
ToNative converts Value to a native go type.
ToUint64 converts Value to uint64.
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.
ValueToProto converts Value to a *querypb.Value.

# Constants

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.
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.
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

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.
QueryResponse represents a query response for ExecuteBatch.
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.