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

Method Format

postgres/parser/sem/tree/object_name.go:88–97  ·  view source on GitHub ↗

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

86
87// Format implements the NodeFormatter interface.
88func (tp *ObjectNamePrefix) Format(ctx *FmtCtx) {
89 alwaysFormat := ctx.alwaysFormatTablePrefix()
90 if tp.ExplicitSchema || alwaysFormat {
91 if tp.ExplicitCatalog || alwaysFormat {
92 ctx.FormatNode(&tp.CatalogName)
93 ctx.WriteByte('.')
94 }
95 ctx.FormatNode(&tp.SchemaName)
96 }
97}
98
99func (tp *ObjectNamePrefix) String() string { return AsString(tp) }
100

Callers

nothing calls this directly

Calls 2

FormatNodeMethod · 0.80

Tested by

no test coverage detected