Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 893 | |
| 894 | // Format implements the NodeFormatter interface. |
| 895 | func (node *ShowSyntax) Format(ctx *FmtCtx) { |
| 896 | ctx.WriteString("SHOW SYNTAX ") |
| 897 | if ctx.flags.HasFlags(FmtAnonymize) || ctx.flags.HasFlags(FmtHideConstants) { |
| 898 | ctx.WriteString("'_'") |
| 899 | } else { |
| 900 | ctx.WriteString(lexbase.EscapeSQLString(node.Statement)) |
| 901 | } |
| 902 | } |
| 903 | |
| 904 | // ShowTransactionStatus represents a SHOW TRANSACTION STATUS statement. |
| 905 | type ShowTransactionStatus struct { |
nothing calls this directly
no test coverage detected