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

Method doc

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

Source from the content-addressed store, hash-verified

1157}
1158
1159func (node *Update) doc(p *PrettyCfg) pretty.Doc {
1160 items := make([]pretty.TableRow, 0, 8)
1161 items = append(items,
1162 node.With.docRow(p),
1163 p.row("UPDATE", p.Doc(node.Table)),
1164 p.row("SET", p.Doc(&node.Exprs)))
1165 if len(node.From) > 0 {
1166 items = append(items,
1167 p.row("FROM", p.Doc(&node.From)))
1168 }
1169 items = append(items,
1170 node.Where.docRow(p),
1171 node.OrderBy.docRow(p))
1172 items = append(items, node.Limit.docTable(p)...)
1173 items = append(items, p.docReturning(node.Returning))
1174 return p.rlTable(items...)
1175}
1176
1177func (node *Delete) doc(p *PrettyCfg) pretty.Doc {
1178 items := make([]pretty.TableRow, 0, 7)

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