Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 30 | |
| 31 | // Format implements the NodeFormatter interface. |
| 32 | func (node *ShowVar) Format(ctx *FmtCtx) { |
| 33 | ctx.WriteString("SHOW ") |
| 34 | // Session var names never contain PII and should be distinguished |
| 35 | // for feature tracking purposes. |
| 36 | ctx.WithFlags(ctx.flags & ^FmtAnonymize & ^FmtMarkRedactionNode, func() { |
| 37 | ctx.FormatNameP(&node.Name) |
| 38 | }) |
| 39 | } |
| 40 | |
| 41 | // ShowClusterSetting represents a SHOW CLUSTER SETTING statement. |
| 42 | type ShowClusterSetting struct { |
nothing calls this directly
no test coverage detected