HasCount returns true if the given fetch type should be printed with an associated count.
()
| 160 | // HasCount returns true if the given fetch type should be printed with an |
| 161 | // associated count. |
| 162 | func (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. |
| 171 | func (c CursorStmt) Format(ctx *FmtCtx) { |