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

Method HasCount

pkg/sql/sem/tree/cursor.go:162–168  ·  view source on GitHub ↗

HasCount returns true if the given fetch type should be printed with an associated count.

()

Source from the content-addressed store, hash-verified

160// HasCount returns true if the given fetch type should be printed with an
161// associated count.
162func (o FetchType) HasCount() bool {
163 switch o {
164 case FetchNormal, FetchRelative, FetchAbsolute:
165 return true
166 }
167 return false
168}
169
170// Format implements the NodeFormatter interface.
171func (c CursorStmt) Format(ctx *FmtCtx) {

Callers 3

FormatMethod · 0.80
docMethod · 0.80
FormatMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected