Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 91 | |
| 92 | // Format implements the NodeFormatter interface. |
| 93 | func (node RoutineArgs) Format(ctx *FmtCtx) { |
| 94 | for i, t := range node { |
| 95 | if i != 0 { |
| 96 | ctx.WriteString(", ") |
| 97 | } |
| 98 | ctx.FormatNode(&t.Mode) |
| 99 | ctx.WriteByte(' ') |
| 100 | if t.Name != "" { |
| 101 | ctx.FormatNode(&t.Name) |
| 102 | ctx.WriteByte(' ') |
| 103 | } |
| 104 | t.Type.SQLString() |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | type RoutineArgMode int8 |
| 109 |
nothing calls this directly
no test coverage detected