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

Method FormatValueWithContext

server/types/type.go:585–590  ·  view source on GitHub ↗

FormatValueWithContext returns the postgres output representation of |val|, using |ctx| for any session-scoped state the type's output function needs.

(ctx *sql.Context, val any)

Source from the content-addressed store, hash-verified

583// |val|, using |ctx| for any session-scoped state the type's output
584// function needs.
585func (t *DoltgresType) FormatValueWithContext(ctx *sql.Context, val any) (string, error) {
586 if val == nil {
587 return "", nil
588 }
589 return t.IoOutput(ctx, val)
590}
591
592// GetAttTypMod returns the attTypMod field of the type.
593func (t *DoltgresType) GetAttTypMod() int32 {

Callers 2

FormatValueMethod · 0.95
ApplyBindingsMethod · 0.80

Calls 1

IoOutputMethod · 0.95

Tested by

no test coverage detected