| 24 | |
| 25 | template <typename D> |
| 26 | static 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 | |
| 40 | template <typename D> |
| 41 | static string createCSV( |
no test coverage detected