ScanColumn scans the columns and appends them to `strings`.
(col types.ColumnInfo, rd types.Reader, n int)
| 154 | |
| 155 | // ScanColumn scans the columns and appends them to `strings`. |
| 156 | func (strings *Strings) ScanColumn(col types.ColumnInfo, rd types.Reader, n int) error { |
| 157 | b := make([]byte, n) |
| 158 | _, err := io.ReadFull(rd, b) |
| 159 | if err != nil { |
| 160 | return err |
| 161 | } |
| 162 | |
| 163 | *strings = append(*strings, internal.BytesToString(b)) |
| 164 | return nil |
| 165 | } |
| 166 | |
| 167 | // AppendValue appends the values from `strings` to the given byte slice. |
| 168 | func (strings Strings) AppendValue(dst []byte, quote int) ([]byte, error) { |
nothing calls this directly
no test coverage detected