Method
maybePrependConstraintName
(constraintName *Name, d pretty.Doc)
Source from the content-addressed store, hash-verified
| 1699 | } |
| 1700 | |
| 1701 | func (p *PrettyCfg) maybePrependConstraintName(constraintName *Name, d pretty.Doc) pretty.Doc { |
| 1702 | if *constraintName != "" { |
| 1703 | return pretty.Fold(pretty.ConcatSpace, |
| 1704 | pretty.Keyword("CONSTRAINT"), |
| 1705 | p.Doc(constraintName), |
| 1706 | d) |
| 1707 | } |
| 1708 | return d |
| 1709 | } |
| 1710 | |
| 1711 | func (node *ColumnTableDef) doc(p *PrettyCfg) pretty.Doc { |
| 1712 | return p.unrow(node.docRow(p)) |
Tested by
no test coverage detected