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

Method docRow

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

Source from the content-addressed store, hash-verified

744}
745
746func (wf *WindowFrame) docRow(p *PrettyCfg) pretty.TableRow {
747 kw := "RANGE"
748 if wf.Mode == ROWS {
749 kw = "ROWS"
750 } else if wf.Mode == GROUPS {
751 kw = "GROUPS"
752 }
753 d := p.Doc(wf.Bounds.StartBound)
754 if wf.Bounds.EndBound != nil {
755 d = p.rlTable(
756 p.row("BETWEEN", d),
757 p.row("AND", p.Doc(wf.Bounds.EndBound)),
758 )
759 }
760 if wf.Exclusion != NoExclusion {
761 d = pretty.Stack(d, p.Doc(wf.Exclusion))
762 }
763 return p.row(kw, d)
764}
765
766func (node *WindowFrameBound) doc(p *PrettyCfg) pretty.Doc {
767 switch node.BoundType {

Callers

nothing calls this directly

Calls 4

StackFunction · 0.92
DocMethod · 0.80
rlTableMethod · 0.80
rowMethod · 0.80

Tested by

no test coverage detected