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

Method String

server/types/type.go:915–927  ·  view source on GitHub ↗

String implements the types.ExtendedType interface.

()

Source from the content-addressed store, hash-verified

913
914// String implements the types.ExtendedType interface.
915func (t *DoltgresType) String() string {
916 str := t.InternalName
917 if t.InternalName == "" {
918 str = t.Name()
919 }
920 if t.attTypMod != -1 {
921 // TODO: need valid sql.Context
922 if l, err := t.TypModOut(nil, t.attTypMod); err == nil {
923 str = fmt.Sprintf("%s%s", str, l)
924 }
925 }
926 return str
927}
928
929// SubscriptFuncName returns the name that would be displayed in pg_type for the `typsubscript` field.
930func (t *DoltgresType) SubscriptFuncName() string {

Callers 3

ConvertMethod · 0.95
ToArrayTypeMethod · 0.95
nodeCreateSequenceFunction · 0.95

Calls 2

NameMethod · 0.95
TypModOutMethod · 0.95

Tested by

no test coverage detected