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

Function existTable

DataBase/db-csv.cc:26–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25template <typename D>
26static bool existTable(
27 D& db, const string& t)
28{
29 dbVec v = db.readSqlToVec(TABLE_LIST);
30 unsigned i = 0;
31
32 while (i<v.size()) {
33 if (t == v[i][0])
34 return true;
35 i++;
36 }
37 return false;
38}
39
40template <typename D>
41static string createCSV(

Callers 1

populateOneTableFunction · 0.85

Calls 2

readSqlToVecMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected