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

Method Format

postgres/parser/sem/tree/table_name.go:44–54  ·  view source on GitHub ↗

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

42
43// Format implements the NodeFormatter interface.
44func (t *TableName) Format(ctx *FmtCtx) {
45 if ctx.tableNameFormatter != nil {
46 ctx.tableNameFormatter(ctx, t)
47 return
48 }
49 t.ObjectNamePrefix.Format(ctx)
50 if t.ExplicitSchema || ctx.alwaysFormatTablePrefix() {
51 ctx.WriteByte('.')
52 }
53 ctx.FormatNode(&t.ObjectName)
54}
55func (t *TableName) String() string { return AsString(t) }
56
57func (t *TableName) objectName() {}

Callers

nothing calls this directly

Calls 3

FormatNodeMethod · 0.80
FormatMethod · 0.65

Tested by

no test coverage detected