Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 121 | |
| 122 | // Format implements the NodeFormatter interface. |
| 123 | func (node *EnumType) Format(ctx *FmtCtx) { |
| 124 | ctx.WriteString(" AS ENUM ( ") |
| 125 | for i := range node.Labels { |
| 126 | if i > 0 { |
| 127 | ctx.WriteString(" , ") |
| 128 | } |
| 129 | lex.EncodeSQLString(&ctx.Buffer, node.Labels[i]) |
| 130 | } |
| 131 | ctx.WriteString(" )") |
| 132 | } |
| 133 | |
| 134 | type RangeTypeOptionType int |
| 135 |
nothing calls this directly
no test coverage detected