MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / DArray

Struct DArray

pkg/sql/sem/tree/datum.go:3291–3303  ·  view source on GitHub ↗

DArray is the array Datum. Any Datum inserted into a DArray are treated as text during serialization.

Source from the content-addressed store, hash-verified

3289// DArray is the array Datum. Any Datum inserted into a DArray are treated as
3290// text during serialization.
3291type DArray struct {
3292 ParamTyp *types.T
3293 Array Datums
3294 // HasNulls is set to true if any of the datums within the array are null.
3295 // This is used in the binary array serialization format.
3296 HasNulls bool
3297 // HasNonNulls is set to true if any of the datums within the are non-null.
3298 // This is used in expression serialization (FmtParsable).
3299 HasNonNulls bool
3300
3301 // customOid, if non-0, is the oid of this array datum.
3302 customOid oid.Oid
3303}
3304
3305// NewDArray returns a DArray containing elements of the specified type.
3306func NewDArray(paramTyp *types.T) *DArray {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected