Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 86 | |
| 87 | // Format implements the NodeFormatter interface. |
| 88 | func (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 | |
| 99 | func (tp *ObjectNamePrefix) String() string { return AsString(tp) } |
| 100 |
nothing calls this directly
no test coverage detected