MCPcopy Create free account
hub / github.com/blastrain/vitess-sqlparser / encode

Function encode

tidbparser/dependency/util/codec/codec.go:47–128  ·  view source on GitHub ↗

encode will encode a datum and append it to a byte slice. If comparable is true, the encoded bytes can be sorted as it's original order. If hash is true, the encoded bytes can be checked equal as it's original value.

(sc *stmtctx.StatementContext, b []byte, vals []types.Datum, comparable bool, hash bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

EncodeKeyFunction · 0.85
EncodeValueFunction · 0.85
HashValuesFunction · 0.85

Calls 15

LogFunction · 0.92
encodeSignedIntFunction · 0.85
encodeUnsignedIntFunction · 0.85
EncodeFloatFunction · 0.85
encodeBytesFunction · 0.85
EncodeUintFunction · 0.85
EncodeIntFunction · 0.85
EncodeDecimalFunction · 0.85
KindMethod · 0.80
GetMysqlTimeMethod · 0.80
ConvertTimeZoneMethod · 0.80
ToPackedUintMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…