package
0.0.0-20180606152119-120387863bf2
Repository: https://github.com/xwb1989/sqlparser.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.
CopyBindVariables returns a shallow-copy of the given bindVariables map.
Float64BindVariable converts a float64 to a bind var.
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.
MakeTrusted makes a new Value based on the type.
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 representaion.
NewUint64 builds an Uint64 Value.
NewValue builds a Value using typ and val.
NewVarBinary builds a VarBinary Value.
NewVarChar builds a VarChar Value.
ProtoToValue converts a *querypb.Value to a Value.
ResolveRows resolves a []PlanValue as rows based on the supplied bindvars.
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.
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 '\'.
# Interfaces
BinWriter interface is used for encoding values.