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)
| 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. |
| 484 | func (t *DataFlowTester) VerifyTable(dst schema.Tabler, csvRelPath string, targetFields []string) { |
| 485 | t.VerifyTableWithOptions(dst, TableOptions{ |
| 486 | CSVRelPath: csvRelPath, |
| 487 | TargetFields: targetFields, |
| 488 | }) |
| 489 | } |
| 490 | |
| 491 | func (t *DataFlowTester) extractColumns(ifc interface{}) []string { |
| 492 | sch, err := schema.Parse(ifc, &sync.Map{}, schema.NamingStrategy{}) |