MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / Format

Method Format

pkg/sql/sem/tree/datum.go:2117–2127  ·  view source on GitHub ↗

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

2115
2116// Format implements the NodeFormatter interface.
2117func (d *DTimeTZ) Format(ctx *FmtCtx) {
2118 f := ctx.flags
2119 bareStrings := f.HasFlags(FmtFlags(lex.EncBareStrings))
2120 if !bareStrings {
2121 ctx.WriteByte('\'')
2122 }
2123 ctx.WriteString(d.TimeTZ.String())
2124 if !bareStrings {
2125 ctx.WriteByte('\'')
2126 }
2127}
2128
2129// Size implements the Datum interface.
2130func (d *DTimeTZ) Size() uintptr {

Callers

nothing calls this directly

Calls 3

FmtFlagsTypeAlias · 0.85
StringMethod · 0.65
HasFlagsMethod · 0.45

Tested by

no test coverage detected