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

Struct DArray

postgres/parser/sem/tree/datum.go:1609–1621  ·  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

1607// DArray is the array Datum. Any Datum inserted into a DArray are treated as
1608// text during serialization.
1609type DArray struct {
1610 ParamTyp *types.T
1611 Array Datums
1612 // HasNulls is set to true if any of the datums within the array are null.
1613 // This is used in the binary array serialization format.
1614 HasNulls bool
1615 // HasNonNulls is set to true if any of the datums within the are non-null.
1616 // This is used in expression serialization (FmtParsable).
1617 HasNonNulls bool
1618
1619 // customOid, if non-0, is the oid of this array datum.
1620 customOid oid.Oid
1621}
1622
1623// NewDArray returns a DArray containing elements of the specified type.
1624func NewDArray(paramTyp *types.T) *DArray {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected