Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 31 | |
| 32 | // Format implements the NodeFormatter interface. |
| 33 | func (node *Revoke) Format(ctx *FmtCtx) { |
| 34 | ctx.WriteString("REVOKE ") |
| 35 | node.Privileges.Format(&ctx.Buffer) |
| 36 | ctx.WriteString(" ON ") |
| 37 | ctx.FormatNode(&node.Targets) |
| 38 | ctx.WriteString(" FROM ") |
| 39 | ctx.FormatNode(&node.Grantees) |
| 40 | } |
| 41 | |
| 42 | // RevokeRole represents a REVOKE <role> statement. |
| 43 | type RevokeRole struct { |
nothing calls this directly
no test coverage detected