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

Struct DArray

pkg/sql/sem/tree/datum.go:4976–4988  ·  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

4974// DArray is the array Datum. Any Datum inserted into a DArray are treated as
4975// text during serialization.
4976type DArray struct {
4977 ParamTyp *types.T
4978 Array Datums
4979 // HasNulls is set to true if any of the datums within the array are null.
4980 // This is used in the binary array serialization format.
4981 HasNulls bool
4982 // HasNonNulls is set to true if any of the datums within the are non-null.
4983 // This is used in expression serialization (FmtParsable).
4984 HasNonNulls bool
4985
4986 // customOid, if non-0, is the oid of this array datum.
4987 customOid oid.Oid
4988}
4989
4990// NewDArray returns a DArray containing elements of the specified type.
4991func NewDArray(paramTyp *types.T) *DArray {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected