MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / doc

Method doc

pkg/sql/sem/tree/pretty.go:1467–1481  ·  view source on GitHub ↗
(p *PrettyCfg)

Source from the content-addressed store, hash-verified

1465}
1466
1467func (node *InterleaveDef) doc(p *PrettyCfg) pretty.Doc {
1468 // Final layout:
1469 //
1470 // INTERLEAVE IN PARENT tbl (...) [RESTRICT|CASCADE]
1471 //
1472 parts := []pretty.Doc{
1473 pretty.Keyword("INTERLEAVE IN PARENT"),
1474 p.Doc(&node.Parent),
1475 p.bracket("(", p.Doc(&node.Fields), ")"),
1476 }
1477 if node.DropBehavior != DropDefault {
1478 parts = append(parts, pretty.Keyword(node.DropBehavior.String()))
1479 }
1480 return pretty.Fold(pretty.ConcatSpace, parts...)
1481}
1482
1483func (node *CreateIndex) doc(p *PrettyCfg) pretty.Doc {
1484 // Final layout:

Callers

nothing calls this directly

Calls 5

KeywordFunction · 0.92
FoldFunction · 0.92
DocMethod · 0.80
bracketMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected