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

Method docTable

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

Source from the content-addressed store, hash-verified

536}
537
538func (node *Select) docTable(p *PrettyCfg) []pretty.TableRow {
539 items := make([]pretty.TableRow, 0, 9)
540 items = append(items, node.With.docRow(p))
541 if s, ok := node.Select.(tableDocer); ok {
542 items = append(items, s.docTable(p)...)
543 } else {
544 items = append(items, p.row("", p.Doc(node.Select)))
545 }
546 items = append(items, node.OrderBy.docRow(p))
547 items = append(items, node.Limit.docTable(p)...)
548 items = append(items, node.Locking.docTable(p)...)
549 return items
550}
551
552func (node *SelectClause) doc(p *PrettyCfg) pretty.Doc {
553 return p.rlTable(node.docTable(p)...)

Callers 1

docMethod · 0.95

Calls 4

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

Tested by

no test coverage detected