MCPcopy Create free account
hub / github.com/Shopify/ghostferry / ScanGenericRow

Function ScanGenericRow

cursor.go:283–293  ·  view source on GitHub ↗
(rows *sqlorig.Rows, columnCount int)

Source from the content-addressed store, hash-verified

281}
282
283func ScanGenericRow(rows *sqlorig.Rows, columnCount int) (RowData, error) {
284 values := make(RowData, columnCount)
285 valuePtrs := make(RowData, columnCount)
286
287 for i, _ := range values {
288 valuePtrs[i] = &values[i]
289 }
290
291 err := rows.Scan(valuePtrs...)
292 return values, err
293}
294
295func ScanByteRow(rows *sqlorig.Rows, columnCount int) ([][]byte, error) {
296 values := make([][]byte, columnCount)

Callers 5

LoadResultsFunction · 0.92
GetHashesMethod · 0.85
FetchMethod · 0.85

Calls

no outgoing calls

Tested by 1