Versions in this module Expand all Collapse all v0 v0.16.3 Nov 29, 2024 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 AreTypesEquivalent(mysqlTypeFromBinlog, mysqlTypeFromSchema querypb.Type) bool + 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 EventTokenMinimum(ev1, ev2 *querypb.EventToken) *querypb.EventToken + func FieldsEqual(f1, f2 []*querypb.Field) bool + func Float64BindVariable(v float64) *querypb.BindVariable + func FormatBindVariables(bindVariables map[string]*querypb.BindVariable, full, asJSON bool) string + func IncludeFieldsOrDefault(options *querypb.ExecuteOptions) querypb.ExecuteOptions_IncludedFields + func Int32BindVariable(v int32) *querypb.BindVariable + func Int64BindVariable(v int64) *querypb.BindVariable + func Int8BindVariable(v int8) *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 MakeTestFields(names, types string) []*querypb.Field + func MySQLToType(mysqlType, flags int64) (typ querypb.Type, err error) + func NullsafeCompare(v1, v2 Value) (int, error) + func PrintResults(results []*Result) string + func Proto3QueryResponsesEqual(r1, r2 []*querypb.ResultWithError) bool + func Proto3ResultsEqual(r1, r2 []*querypb.QueryResult) bool + func Proto3ValuesEqual(v1, v2 []*querypb.Value) bool + func QueryResponsesEqual(r1, r2 []QueryResponse) bool + func QueryResponsesToProto3(qr []QueryResponse) []*querypb.ResultWithError + func ResolveRows(pvs []PlanValue, bindVars map[string]*querypb.BindVariable) ([][]Value, error) + func ResultToProto3(qr *Result) *querypb.QueryResult + func ResultsEqual(r1, r2 []Result) bool + func ResultsToProto3(qr []Result) []*querypb.QueryResult + func RowToProto3(row []Value) *querypb.Row + func RowsToProto3(rows [][]Value) []*querypb.Row + func StringBindVariable(v string) *querypb.BindVariable + func TestBindVariable(v interface{}) *querypb.BindVariable + func ToFloat64(v Value) (float64, error) + func ToInt64(v Value) (int64, error) + func ToNative(v Value) (interface{}, error) + func ToUint64(v Value) (uint64, error) + 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 QueryResponse struct + QueryError error + QueryResult *Result + func Proto3ToQueryReponses(qr []*querypb.ResultWithError) []QueryResponse + type Result struct + Fields []*querypb.Field + InsertID uint64 + Rows [][]Value + RowsAffected uint64 + func CustomProto3ToResult(fields []*querypb.Field, qr *querypb.QueryResult) *Result + func MakeTestResult(fields []*querypb.Field, rows ...string) *Result + func MakeTestStreamingResults(fields []*querypb.Field, rows ...string) []*Result + func Proto3ToResult(qr *querypb.QueryResult) *Result + func Proto3ToResults(qr []*querypb.QueryResult) []Result + func (result *Result) AppendResult(src *Result) + func (result *Result) Copy() *Result + func (result *Result) Equal(other *Result) bool + func (result *Result) Repair(fields []*querypb.Field) + func (result *Result) StripMetadata(incl querypb.ExecuteOptions_IncludedFields) *Result + func (result *Result) Truncate(l int) *Result + type ResultStream interface + Recv func() (*Result, error) + type Value struct + func Add(v1, v2 Value) (Value, error) + func BindVariableToValue(bv *querypb.BindVariable) (Value, error) + func Cast(v Value, typ querypb.Type) (Value, error) + func CopyRow(r []Value) []Value + func Divide(v1, v2 Value) (Value, error) + func InterfaceToValue(goval interface{}) (Value, error) + func MakeRowTrusted(fields []*querypb.Field, row *querypb.Row) []Value + func MakeTrusted(typ querypb.Type, val []byte) Value + func Max(v1, v2 Value) (Value, error) + func Min(v1, v2 Value) (Value, error) + func Multiply(v1, v2 Value) (Value, error) + func NewFloat64(v float64) Value + func NewInt32(v int32) Value + func NewInt64(v int64) Value + func NewInt8(v int8) Value + func NewIntegral(val string) (n Value, err error) + func NewUint32(v uint32) Value + 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 NullsafeAdd(v1, v2 Value, resultType querypb.Type) Value + func ProtoToValue(v *querypb.Value) Value + func Subtract(v1, v2 Value) (Value, error) + 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