Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 94 | |
| 95 | // Format implements the NodeFormatter interface. |
| 96 | func (node *LiteralValuesClause) Format(ctx *FmtCtx) { |
| 97 | ctx.WriteString("VALUES ") |
| 98 | comma := "" |
| 99 | for i := 0; i < node.Rows.NumRows(); i++ { |
| 100 | ctx.WriteString(comma) |
| 101 | ctx.WriteByte('(') |
| 102 | comma2 := "" |
| 103 | for j := 0; j < node.Rows.NumCols(); j++ { |
| 104 | ctx.WriteString(comma2) |
| 105 | ctx.FormatNode(node.Rows.Get(i, j)) |
| 106 | comma2 = ", " |
| 107 | } |
| 108 | ctx.WriteByte(')') |
| 109 | comma = ", " |
| 110 | } |
| 111 | } |
nothing calls this directly
no test coverage detected