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

Method FlushTabler

backend/helpers/e2ehelper/data_flow_tester.go:206–216  ·  view source on GitHub ↗

FlushTabler migrate table and deletes all records from specified table

(dst schema.Tabler)

Source from the content-addressed store, hash-verified

204
205// FlushTabler migrate table and deletes all records from specified table
206func (t *DataFlowTester) FlushTabler(dst schema.Tabler) {
207 // flush target table
208 err := t.Db.Migrator().DropTable(dst)
209 if err != nil {
210 panic(err)
211 }
212 err = t.Db.AutoMigrate(dst)
213 if err != nil {
214 panic(err)
215 }
216}
217
218// Subtask executes specified subtasks
219func (t *DataFlowTester) Subtask(subtaskMeta plugin.SubTaskMeta, taskData interface{}) {

Callers 15

ExampleDataFlowTesterFunction · 0.95
TestGetTableMetaDataFunction · 0.95
importCsvMethod · 0.95
SubtaskMethod · 0.95
TestTapdBugDataFlowFunction · 0.95
TestTapdTaskDataFlowFunction · 0.95

Calls 1

AutoMigrateMethod · 0.65