MCPcopy Create free account
hub / github.com/dolthub/doltgresql / deserializeTypeArray

Function deserializeTypeArray

server/types/array.go:92–94  ·  view source on GitHub ↗

deserializeTypeArray handles deserialization from the Dolt serialized format to our standard representation used by expressions and nodes.

(ctx *sql.Context, t *DoltgresType, data []byte)

Source from the content-addressed store, hash-verified

90// deserializeTypeArray handles deserialization from the Dolt serialized format to our standard representation used by
91// expressions and nodes.
92func deserializeTypeArray(ctx *sql.Context, t *DoltgresType, data []byte) (any, error) {
93 return deserializeArray(ctx, data, t.ArrayBaseType())
94}
95
96// deserializeArray serializes an array of given base type.
97func serializeArray(ctx *sql.Context, vals []any, baseType *DoltgresType) ([]byte, error) {

Callers

nothing calls this directly

Calls 2

deserializeArrayFunction · 0.85
ArrayBaseTypeMethod · 0.80

Tested by

no test coverage detected