MCPcopy Index your code
hub / github.com/cloudquery/cloudquery / transformRecord

Function transformRecord

plugins/destination/mysql/client/transformer.go:65–79  ·  view source on GitHub ↗
(record arrow.RecordBatch)

Source from the content-addressed store, hash-verified

63}
64
65func transformRecord(record arrow.RecordBatch) ([][]any, error) {
66 res := make([][]any, record.NumRows())
67 var err error
68 for i := int64(0); i < record.NumRows(); i++ {
69 row := make([]any, record.NumCols())
70 for j := 0; int64(j) < record.NumCols(); j++ {
71 row[j], err = getValue(record.Column(j), int(i))
72 if err != nil {
73 return nil, err
74 }
75 }
76 res[i] = row
77 }
78 return res, nil
79}

Callers 1

writeResourcesMethod · 0.70

Calls 1

getValueFunction · 0.70

Tested by

no test coverage detected