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

Method BaseType

server/types/type.go:166–171  ·  view source on GitHub ↗

BaseType returns a base type of given array or vector type. If this type does not have base type, it returns itself.

()

Source from the content-addressed store, hash-verified

164// BaseType returns a base type of given array or vector type.
165// If this type does not have base type, it returns itself.
166func (t *DoltgresType) BaseType() *DoltgresType {
167 if t.Elem.ID == id.NullType {
168 return t
169 }
170 return t.Elem.WithAttTypMod(t.attTypMod)
171}
172
173// CharacterSet implements the sql.StringType interface.
174func (t *DoltgresType) CharacterSet() sql.CharacterSetID {

Callers 1

array.goFile · 0.80

Calls 1

WithAttTypModMethod · 0.80

Tested by

no test coverage detected