Versions in this module Expand all Collapse all v1 v1.1.0 Dec 4, 2020 v1.0.0 Dec 3, 2020 Changes in this version + const Binary + const Bit + const Blob + const Char + const Date + const Datetime + const Decimal + const Enum + const Expression + const Float32 + const Float64 + const Geometry + const Int16 + const Int24 + const Int32 + const Int64 + const Int8 + const Null + const Set + const Text + const Time + const Timestamp + const TypeJSON + const Uint16 + const Uint24 + const Uint32 + const Uint64 + const Uint8 + const VarBinary + const VarChar + const Year + var DontEscape = byte(255) + var NULL = Value + var NullBindVariable = &querypb.BindVariable + var SQLDecodeMap [256]byte + var SQLEncodeMap [256]byte + func BindVariablesEqual(x, y map[string]*querypb.BindVariable) bool + func BuildBindVariable(v interface{}) (*querypb.BindVariable, error) + func BuildBindVariables(in map[string]interface{}) (map[string]*querypb.BindVariable, error) + func BytesBindVariable(v []byte) *querypb.BindVariable + func CopyBindVariables(bindVariables map[string]*querypb.BindVariable) map[string]*querypb.BindVariable + func Float64BindVariable(v float64) *querypb.BindVariable + func Int32BindVariable(v int32) *querypb.BindVariable + func Int64BindVariable(v int64) *querypb.BindVariable + func IsBinary(t querypb.Type) bool + func IsFloat(t querypb.Type) bool + func IsIntegral(t querypb.Type) bool + func IsQuoted(t querypb.Type) bool + func IsSigned(t querypb.Type) bool + func IsText(t querypb.Type) bool + func IsUnsigned(t querypb.Type) bool + func MySQLToType(mysqlType, flags int64) (typ querypb.Type, err error) + func ResolveRows(pvs []PlanValue, bindVars map[string]*querypb.BindVariable) ([][]Value, error) + func StringBindVariable(v string) *querypb.BindVariable + func TestBindVariable(v interface{}) *querypb.BindVariable + func TypeToMySQL(typ querypb.Type) (mysqlType, flags int64) + func Uint64BindVariable(v uint64) *querypb.BindVariable + func ValidateBindVariable(bv *querypb.BindVariable) error + func ValidateBindVariables(bv map[string]*querypb.BindVariable) error + func ValueBindVariable(v Value) *querypb.BindVariable + func ValueToProto(v Value) *querypb.Value + type BinWriter interface + Write func([]byte) (int, error) + type PlanValue struct + Key string + ListKey string + Value Value + Values []PlanValue + func (pv PlanValue) IsList() bool + func (pv PlanValue) IsNull() bool + func (pv PlanValue) MarshalJSON() ([]byte, error) + func (pv PlanValue) ResolveList(bindVars map[string]*querypb.BindVariable) ([]Value, error) + func (pv PlanValue) ResolveValue(bindVars map[string]*querypb.BindVariable) (Value, error) + type Value struct + func BindVariableToValue(bv *querypb.BindVariable) (Value, error) + func InterfaceToValue(goval interface{}) (Value, error) + func MakeTrusted(typ querypb.Type, val []byte) Value + func NewFloat64(v float64) Value + func NewInt32(v int32) Value + func NewInt64(v int64) Value + func NewIntegral(val string) (n Value, err error) + func NewUint64(v uint64) Value + func NewValue(typ querypb.Type, val []byte) (v Value, err error) + func NewVarBinary(v string) Value + func NewVarChar(v string) Value + func ProtoToValue(v *querypb.Value) Value + func TestValue(typ querypb.Type, val string) Value + func (v *Value) UnmarshalJSON(b []byte) error + func (v Value) EncodeASCII(b BinWriter) + func (v Value) EncodeSQL(b BinWriter) + func (v Value) IsBinary() bool + func (v Value) IsFloat() bool + func (v Value) IsIntegral() bool + func (v Value) IsNull() bool + func (v Value) IsQuoted() bool + func (v Value) IsSigned() bool + func (v Value) IsText() bool + func (v Value) IsUnsigned() bool + func (v Value) Len() int + func (v Value) MarshalJSON() ([]byte, error) + func (v Value) Raw() []byte + func (v Value) String() string + func (v Value) ToBytes() []byte + func (v Value) ToString() string + func (v Value) Type() querypb.Type