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

Method Format

postgres/parser/sem/tree/datum.go:1290–1300  ·  view source on GitHub ↗

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

1288
1289// Format implements the NodeFormatter interface.
1290func (d *DGeography) Format(ctx *FmtCtx) {
1291 f := ctx.flags
1292 bareStrings := f.HasFlags(FmtFlags(lex.EncBareStrings))
1293 if !bareStrings {
1294 ctx.WriteByte('\'')
1295 }
1296 ctx.WriteString(d.Geography.EWKBHex())
1297 if !bareStrings {
1298 ctx.WriteByte('\'')
1299 }
1300}
1301
1302// Size implements the Datum interface.
1303func (d *DGeography) Size() uintptr {

Callers

nothing calls this directly

Calls 4

FmtFlagsTypeAlias · 0.85
WriteStringMethod · 0.80
HasFlagsMethod · 0.45
EWKBHexMethod · 0.45

Tested by

no test coverage detected