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

Method FormatValue

server/types/type.go:578–580  ·  view source on GitHub ↗

FormatValue implements the types.ExtendedType interface. Callers with a session context should use FormatValueWithContext instead, since types whose output reads session state cannot resolve through a nil context.

(val any)

Source from the content-addressed store, hash-verified

576// types whose output reads session state cannot resolve through a nil
577// context.
578func (t *DoltgresType) FormatValue(val any) (string, error) {
579 return t.FormatValueWithContext(nil, val)
580}
581
582// FormatValueWithContext returns the postgres output representation of
583// |val|, using |ctx| for any session-scoped state the type's output

Callers 3

NormalizeExpectedRowFunction · 0.80
NormalizeValToStringFunction · 0.80
NormalizeArrayTypeFunction · 0.80

Calls 1

Tested by

no test coverage detected