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

Function arrayOf

pkg/sql/parser/parse.go:361–368  ·  view source on GitHub ↗

ArrayOf creates a type alias for an array of the given element type and fixed bounds.

(colType *types.T, bounds []int32)

Source from the content-addressed store, hash-verified

359// ArrayOf creates a type alias for an array of the given element type and fixed
360// bounds.
361func arrayOf(colType *types.T, bounds []int32) (*types.T, error) {
362 if err := types.CheckArrayElementType(colType); err != nil {
363 return nil, err
364 }
365
366 // Currently bounds are ignored.
367 return types.MakeArray(colType), nil
368}
369
370// The SERIAL types are pseudo-types that are only used during parsing. After
371// that, they should behave identically to INT columns. They are declared

Callers 1

ParseMethod · 0.85

Calls 2

CheckArrayElementTypeFunction · 0.92
MakeArrayFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…