(rowVals []*string)
| 116 | } |
| 117 | |
| 118 | func rowValsToSQLRows(rowVals []*string) sql.Row { |
| 119 | var sqlRow sql.Row |
| 120 | for _, rowVal := range rowVals { |
| 121 | if rowVal == nil { |
| 122 | sqlRow = append(sqlRow, nil) |
| 123 | } else { |
| 124 | sqlRow = append(sqlRow, *rowVal) |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | return sqlRow |
| 129 | } |
| 130 | |
| 131 | // Close should release resources being held |
| 132 | func (csvr *csvReader) Close(ctx context.Context) error { |