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

Method Format

postgres/parser/sem/tree/select.go:1022–1027  ·  view source on GitHub ↗

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

1020
1021// Format implements the NodeFormatter interface.
1022func (s LockingStrength) Format(ctx *FmtCtx) {
1023 if s != ForNone {
1024 ctx.WriteString(" ")
1025 ctx.WriteString(s.String())
1026 }
1027}
1028
1029// Max returns the maximum of the two locking strengths.
1030func (s LockingStrength) Max(s2 LockingStrength) LockingStrength {

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
WriteStringMethod · 0.80

Tested by

no test coverage detected