| 69 | |
| 70 | template <typename D> |
| 71 | static 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 | |
| 87 | template <typename D> |
| 88 | static void populateAll( |
no test coverage detected