MCPcopy Create free account
hub / github.com/BirolLab/abyss / populateOneTable

Function populateOneTable

DataBase/db-csv.cc:71–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70template <typename D>
71static void populateOneTable(
72 D& db, const string& repo, const string& t)
73{
74 string tt(db.getProperTableName(t));
75 stringstream csv;
76 csv << "db." << tt << ".csv";
77
78 if (!existTable(db, tt)) {
79 cout << "Table " << "'" <<
80 tt << "' doesn't exist in " << repo << "." << endl;
81 cout << USAGE_MESSAGE;
82 exit(EXIT_FAILURE);
83 }
84 cout << createCSV(db, tt, csv.str());
85}
86
87template <typename D>
88static void populateAll(

Callers 2

populateAllFunction · 0.85
mainFunction · 0.85

Calls 4

existTableFunction · 0.85
createCSVFunction · 0.85
getProperTableNameMethod · 0.80
strMethod · 0.45

Tested by

no test coverage detected