(p *PrettyCfg)
| 791 | } |
| 792 | |
| 793 | func (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 | |
| 810 | func (node *LockingClause) doc(p *PrettyCfg) pretty.Doc { |
| 811 | return p.rlTable(node.docTable(p)...) |
nothing calls this directly
no test coverage detected