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

Method doc

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

Source from the content-addressed store, hash-verified

1093}
1094
1095func (node *Update) doc(p *PrettyCfg) pretty.Doc {
1096 items := make([]pretty.TableRow, 8)
1097 items = append(items,
1098 node.With.docRow(p),
1099 p.row("UPDATE", p.Doc(node.Table)),
1100 p.row("SET", p.Doc(&node.Exprs)))
1101 if len(node.From) > 0 {
1102 items = append(items,
1103 p.row("FROM", p.Doc(&node.From)))
1104 }
1105 items = append(items,
1106 node.Where.docRow(p),
1107 node.OrderBy.docRow(p))
1108 items = append(items, node.Limit.docTable(p)...)
1109 items = append(items, p.docReturning(node.Returning))
1110 return p.rlTable(items...)
1111}
1112
1113func (node *Delete) doc(p *PrettyCfg) pretty.Doc {
1114 items := make([]pretty.TableRow, 6)

Callers

nothing calls this directly

Calls 6

rowMethod · 0.80
DocMethod · 0.80
docReturningMethod · 0.80
rlTableMethod · 0.80
docTableMethod · 0.65
docRowMethod · 0.45

Tested by

no test coverage detected