writeCopyData sends a row of COPY data
(w io.Writer, data []byte)
| 390 | data = append(data, 1) |
| 391 | } |
| 392 | |
| 393 | // Number of columns |
| 394 | colBytes := make([]byte, 2) |
| 395 | binary.BigEndian.PutUint16(colBytes, uint16(numColumns)) |
| 396 | data = append(data, colBytes...) |
| 397 |