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

Method Format

pkg/sql/sem/tree/select.go:1223–1228  ·  view source on GitHub ↗

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

1221
1222// Format implements the NodeFormatter interface.
1223func (p LockingWaitPolicy) Format(ctx *FmtCtx) {
1224 if p != LockWaitBlock {
1225 ctx.WriteString(" ")
1226 ctx.WriteString(p.String())
1227 }
1228}
1229
1230// Max returns the maximum of the two locking wait policies.
1231func (p LockingWaitPolicy) Max(p2 LockingWaitPolicy) LockingWaitPolicy {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.95

Tested by

no test coverage detected