MCPcopy Create free account
hub / github.com/dolthub/doltgresql / doc

Method doc

postgres/parser/sem/tree/pretty.go:793–808  ·  view source on GitHub ↗
(p *PrettyCfg)

Source from the content-addressed store, hash-verified

791}
792
793func (node *WindowFrameBound) doc(p *PrettyCfg) pretty.Doc {
794 switch node.BoundType {
795 case UnboundedPreceding:
796 return pretty.Keyword("UNBOUNDED PRECEDING")
797 case OffsetPreceding:
798 return pretty.ConcatSpace(p.Doc(node.OffsetExpr), pretty.Keyword("PRECEDING"))
799 case CurrentRow:
800 return pretty.Keyword("CURRENT ROW")
801 case OffsetFollowing:
802 return pretty.ConcatSpace(p.Doc(node.OffsetExpr), pretty.Keyword("FOLLOWING"))
803 case UnboundedFollowing:
804 return pretty.Keyword("UNBOUNDED FOLLOWING")
805 default:
806 panic(errors.AssertionFailedf("unexpected type %d", errors.Safe(node.BoundType)))
807 }
808}
809
810func (node *LockingClause) doc(p *PrettyCfg) pretty.Doc {
811 return p.rlTable(node.docTable(p)...)

Callers

nothing calls this directly

Calls 3

KeywordFunction · 0.92
ConcatSpaceFunction · 0.92
DocMethod · 0.80

Tested by

no test coverage detected