package
0.0.0-20240814195656-ed936a2b0889
Repository: https://github.com/smlxl/sqlparser.git
Documentation: pkg.go.dev

# 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.
BufDecodeStringSQL decodes the string into a strings.Builder.
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.
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.
No description provided by the author
DecodeStringSQL encodes the string as a SQL string.
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 has a date component.
IsDateOrTime returns true if the type represents a date and/or time.
IsDecimal returns true is querypb.Type is a decimal.
IsEnum returns true if the type is Enum type.
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.
IsSet returns true if the type is Set type.
IsSigned returns true if querypb.Type is a signed integral.
IsText returns true if querypb.Type is a text.
No description provided by the author
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.
MarshalResult marshals the object into a Result object.
MySQLToType computes the vitess type from mysql type and flags.
NewBitNum builds a BitNum Value.
NewBoolean builds a Uint8 Value from a boolean.
NewDate builds a Date value.
NewDatetime builds a Datetime value.
NewDecimal builds a Decimal value.
NewFloat32 builds a Float32 Value.
NewFloat64 builds an Float64 Value.
NewHexNum builds an Hex Value.
NewHexVal builds a HexVal Value.
NewInt16 builds a Int16 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.
NewUint16 builds a Uint16 Value.
NewUint32 builds an Uint32 Value.
NewUint64 builds an Uint64 Value.
NewUint8 builds a Uint8 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.
ReplaceFields remaps the fields and/or row columns of a given result.
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
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.
No description provided by the author
TestTuple builds a tuple Value from a list of Values.
TestValue builds a Value from typ and val.
ToNamedResult converts a Result struct into a new NamedResult struct.
No description provided by the author
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.
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.
No description provided by the author
ErrIncompatibleTypeCast indicates a casting problem.
No description provided by the author
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.
No description provided by the author
No description provided by the author
No description provided by the author
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
ResultMarshaller knows how to marshal itself into a Result.
ResultStream is an interface for receiving Result.
ValueMarshaller knows how to marshal itself into the bytes for a column of a particular type.

# Type aliases

No description provided by the author
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