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

Method Format

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

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

1333
1334// Format implements the NodeFormatter interface.
1335func (d *DGeometry) Format(ctx *FmtCtx) {
1336 f := ctx.flags
1337 bareStrings := f.HasFlags(FmtFlags(lex.EncBareStrings))
1338 if !bareStrings {
1339 ctx.WriteByte('\'')
1340 }
1341 ctx.WriteString(d.Geometry.EWKBHex())
1342 if !bareStrings {
1343 ctx.WriteByte('\'')
1344 }
1345}
1346
1347// Size implements the Datum interface.
1348func (d *DGeometry) 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