Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 848 | |
| 849 | // Format implements the NodeFormatter interface. |
| 850 | func (node *AlterTableTrigger) Format(ctx *FmtCtx) { |
| 851 | if node.Disable { |
| 852 | ctx.WriteString(" DISABLE") |
| 853 | } else { |
| 854 | ctx.WriteString(" ENABLE") |
| 855 | } |
| 856 | if node.IsReplica { |
| 857 | ctx.WriteString(" REPLICA") |
| 858 | } else if node.IsAlways { |
| 859 | ctx.WriteString(" ALWAYS") |
| 860 | } |
| 861 | ctx.WriteString(" TRIGGER") |
| 862 | ctx.FormatNameP(&node.Trigger) |
| 863 | } |
| 864 | |
| 865 | // AlterTableValidateConstraint represents a VALIDATE CONSTRAINT command. |
| 866 | type AlterTableValidateConstraint struct { |
nothing calls this directly
no test coverage detected