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

Function serializeTypeArray

server/types/array.go:86–88  ·  view source on GitHub ↗

serializeTypeArray handles serialization from the standard representation to our serialized representation that is written in Dolt.

(ctx *sql.Context, t *DoltgresType, val any)

Source from the content-addressed store, hash-verified

84// serializeTypeArray handles serialization from the standard representation to our serialized representation that is
85// written in Dolt.
86func serializeTypeArray(ctx *sql.Context, t *DoltgresType, val any) ([]byte, error) {
87 return serializeArray(ctx, val.([]any), t.ArrayBaseType())
88}
89
90// deserializeTypeArray handles deserialization from the Dolt serialized format to our standard representation used by
91// expressions and nodes.

Callers

nothing calls this directly

Calls 2

serializeArrayFunction · 0.85
ArrayBaseTypeMethod · 0.80

Tested by

no test coverage detected