SendDescribe sends a Describe message to the backend (i.e. the server). The message is buffered until Flush is called. Any error encountered will be returned from Flush.
(msg *Describe)
| 202 | // SendDescribe sends a Describe message to the backend (i.e. the server). The message is buffered until Flush is |
| 203 | // called. Any error encountered will be returned from Flush. |
| 204 | func (f *Frontend) SendDescribe(msg *Describe) { |
| 205 | if f.encodeError != nil { |
| 206 | return |
| 207 | } |
| 208 | |
| 209 | prevLen := len(f.wbuf) |
| 210 | newBuf, err := msg.Encode(f.wbuf) |
| 211 | if err != nil { |
| 212 | f.encodeError = err |
| 213 | return |
| 214 | } |
| 215 | f.wbuf = newBuf |
| 216 | |
| 217 | if f.tracer != nil { |
| 218 | f.tracer.traceDescribe('F', int32(len(f.wbuf)-prevLen), msg) |
| 219 | } |
| 220 | } |
| 221 | |
| 222 | // SendExecute sends an Execute message to the backend (i.e. the server). The message is buffered until Flush is called. |
| 223 | // Any error encountered will be returned from Flush. |
no test coverage detected