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

Method doc

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

Source from the content-addressed store, hash-verified

1905}
1906
1907func (node *Restore) doc(p *PrettyCfg) pretty.Doc {
1908 items := make([]pretty.TableRow, 0, 5)
1909
1910 items = append(items, p.row("RESTORE", pretty.Nil))
1911 if node.DescriptorCoverage == RequestedDescriptors {
1912 items = append(items, node.Targets.docRow(p))
1913 }
1914 from := make([]pretty.Doc, len(node.From))
1915 for i := range node.From {
1916 from[i] = p.Doc(&node.From[i])
1917 }
1918 items = append(items, p.row("FROM", p.commaSeparated(from...)))
1919
1920 if node.AsOf.Expr != nil {
1921 items = append(items, node.AsOf.docRow(p))
1922 }
1923 if node.Options != nil {
1924 items = append(items, p.row("WITH", p.Doc(&node.Options)))
1925 }
1926 return p.rlTable(items...)
1927}
1928
1929func (node *TargetList) doc(p *PrettyCfg) pretty.Doc {
1930 return p.unrow(node.docRow(p))

Callers

nothing calls this directly

Calls 5

rowMethod · 0.80
DocMethod · 0.80
commaSeparatedMethod · 0.80
rlTableMethod · 0.80
docRowMethod · 0.45

Tested by

no test coverage detected