Format formats the node.
(buf *nodeBuffer)
| 922 | |
| 923 | // Format formats the node. |
| 924 | func (cd *CheckDefinition) Format(buf *nodeBuffer) { |
| 925 | if !cd.ConstraintName.IsEmpty() { |
| 926 | buf.Printf("constraint %v ", cd.ConstraintName) |
| 927 | } |
| 928 | buf.Printf("check (%v)", cd.Where.Expr) |
| 929 | if bool(cd.NoInherit) { |
| 930 | buf.Printf(" no inherit") |
| 931 | } |
| 932 | if cd.NotForReplication { |
| 933 | buf.Printf(" not for replication") |
| 934 | } |
| 935 | } |
| 936 | |
| 937 | type ExclusionPair struct { |
| 938 | Expression Expr |