Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 42 | |
| 43 | // Format implements the NodeFormatter interface. |
| 44 | func (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 | } |
| 55 | func (t *TableName) String() string { return AsString(t) } |
| 56 | |
| 57 | func (t *TableName) objectName() {} |
nothing calls this directly
no test coverage detected