MCPcopy
hub / github.com/apache/devlake / VerifyTable

Method VerifyTable

backend/helpers/e2ehelper/data_flow_tester.go:484–489  ·  view source on GitHub ↗

VerifyTable reads rows from csv file and compare with records from database one by one. You must specify the Primary Key Fields with `pkFields` so DataFlowTester could select the exact record from database, as well as which fields to compare with by specifying `targetFields` parameter. Leaving `targ

(dst schema.Tabler, csvRelPath string, targetFields []string)

Source from the content-addressed store, hash-verified

482// Primary Key Fields with `pkFields` so DataFlowTester could select the exact record from database, as well as which
483// fields to compare with by specifying `targetFields` parameter. Leaving `targetFields` empty/nil will compare all fields.
484func (t *DataFlowTester) VerifyTable(dst schema.Tabler, csvRelPath string, targetFields []string) {
485 t.VerifyTableWithOptions(dst, TableOptions{
486 CSVRelPath: csvRelPath,
487 TargetFields: targetFields,
488 })
489}
490
491func (t *DataFlowTester) extractColumns(ifc interface{}) []string {
492 sch, err := schema.Parse(ifc, &sync.Map{}, schema.NamingStrategy{})

Calls 1