Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 52 | |
| 53 | // Format implements the NodeFormatter interface. |
| 54 | func (node *SetClusterSetting) Format(ctx *FmtCtx) { |
| 55 | ctx.WriteString("SET CLUSTER SETTING ") |
| 56 | // Cluster setting names never contain PII and should be distinguished |
| 57 | // for feature tracking purposes. |
| 58 | ctx.WithFlags(ctx.flags & ^FmtAnonymize, func() { |
| 59 | ctx.FormatNameP(&node.Name) |
| 60 | }) |
| 61 | |
| 62 | ctx.WriteString(" = ") |
| 63 | ctx.FormatNode(node.Value) |
| 64 | } |
| 65 | |
| 66 | // SetTransaction represents a SET TRANSACTION statement. |
| 67 | type SetTransaction struct { |
nothing calls this directly
no test coverage detected