Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 49 | |
| 50 | // Format implements the NodeFormatter interface. |
| 51 | func (node *CannedOptPlan) Format(ctx *FmtCtx) { |
| 52 | // This node can only be used as the AST for a Prepare statement of the form: |
| 53 | // PREPARE name AS OPT PLAN '...'). |
| 54 | ctx.WriteString("OPT PLAN ") |
| 55 | ctx.WriteString(lex.EscapeSQLString(node.Plan)) |
| 56 | } |
| 57 | |
| 58 | // Execute represents an EXECUTE statement. |
| 59 | type Execute struct { |
nothing calls this directly
no test coverage detected