# Functions
AreTypesEquivalent returns whether two types are equivalent.
BindVariablesEqual compares two maps of bind variables.
BindVariableToValue converts a bind var into a Value.
BitNumBindVariable converts bytes representing a bit encoded string to a bind var.
BoolBindVariable converts an bool to a int64 bind var.
BufEncodeStringSQL encodes the string into a strings.Builder.
BuildBindVariable builds a *querypb.BindVariable from a valid input type.
BuildBindVariables builds a map[string]*querypb.BindVariable from a map[string]any.
BytesBindVariable converts a []byte to a bind var.
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.
No description provided by the author
EncodeStringSQL encodes the string as a SQL string.
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.
HexNumBindVariable converts bytes representing a hex number to a bind var.
HexValBindVariable converts bytes representing a hex encoded string to a bind var.
IncludeFieldsOrDefault normalizes the passed Execution Options.
Int32BindVariable converts an int32 to a bind var.
Int64BindVariable converts an int64 to a bind var.
Int8BindVariable converts an int8 to a bind var.
InterfaceToValue builds a value from a go type.
IsBinary returns true if querypb.Type is a binary.
IsDate returns true if the type represents a date and/or time.
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.
IsNull returns true if the type is NULL type.
IsNumber returns true if the type is any type of number.
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.
MySQLToType computes the vitess type from mysql type and flags.
NewBitNum builds a BitNum Value.
NewDate builds a Date value.
NewDatetime builds a Datetime value.
NewDecimal builds a Decimal value.
NewFloat64 builds an Float64 Value.
NewHexNum builds an Hex Value.
NewHexVal builds a HexVal Value.
NewInt32 builds an Int64 Value.
NewInt64 builds an Int64 Value.
NewInt8 builds an Int8 Value.
NewIntegral builds an integral type from a string representation.
No description provided by the author
NewTime builds a Time value.
NewTimestamp builds a Timestamp value.
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.
ParseRows parses the output generated by fmt.Sprintf("#v", rows), and reifies the original []sqltypes.Row NOTE: This is not meant for production use!.
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.
ResultsEqual compares two arrays of Result.
ResultsEqualUnordered compares two unordered arrays of Result.
ResultsToProto3 converts []Result to proto3.
ResultToProto3 converts Result to proto3.
No description provided by the author
No description provided by the author
RowsToProto3 converts [][]Value to proto3.
RowToProto3 converts []Value to proto3.
RowToProto3Inplace converts []Value to proto3 and stores the conversion in the provided Row.
StringBindVariable converts a string to a bind var.
TestBindVariable makes a *querypb.BindVariable from any.
TestValue builds a Value from typ and val.
ToNamedResult converts a Result struct into a new NamedResult struct.
TypeToMySQL returns the equivalent mysql type and flag for a vitess type.
Uint32BindVariable converts a uint32 to a bind var.
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.
goland:noinspection GoUnusedConst.
goland:noinspection GoUnusedConst.
goland:noinspection GoUnusedConst.
goland:noinspection GoUnusedConst.
goland:noinspection GoUnusedConst.
goland:noinspection GoUnusedConst.
goland:noinspection GoUnusedConst.
goland:noinspection GoUnusedConst.
goland:noinspection GoUnusedConst.
goland:noinspection GoUnusedConst.
goland:noinspection GoUnusedConst.
goland:noinspection GoUnusedConst.
goland:noinspection GoUnusedConst.
goland:noinspection GoUnusedConst.
Vitess data types.
Vitess data types.
Vitess data types.
Vitess data types.
No description provided by the author
No description provided by the author
No description provided by the author
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
BvReplaceSchemaName is bind variable to be sent down to vttablet to replace schema name.
BvSchemaName is bind variable to be sent down to vttablet for schema name.
DontEscape tells you if a character should not be escaped.
ErrIncompatibleTypeCast indicates a casting problem.
ErrNoSuchField indicates a search for a value by an unknown field/column name.
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
NamedResult represents a query result with named values as opposed to ordinal values.
QueryResponse represents a query response for ExecuteBatch.
Result represents a query result.
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
ResultStream is an interface for receiving Result.
# Type aliases
No description provided by the author
No description provided by the author
RowNamedValues contains a row's values as a map based on Field (aka table column) name.
No description provided by the author