oosp
This commit is contained in:
parent
5509e64f00
commit
8dc821422b
2 changed files with 12 additions and 1 deletions
10
DBEngine.h
10
DBEngine.h
|
@ -22,7 +22,15 @@ public:
|
|||
tables.push_back(r);
|
||||
}
|
||||
|
||||
void showTable() { /*Becca*/ }
|
||||
void showTables(String name) {
|
||||
for(int i = 0; i < tables.size(); i++) {
|
||||
if (tables.getTableName() == name) {
|
||||
name.display();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void saveToFile() { /*Becca*/ }
|
||||
void insertTuple() { /*William*/ }
|
||||
void deleteTuple() { /*William*/ }
|
||||
|
|
3
test.cpp
3
test.cpp
|
@ -26,5 +26,8 @@ int main() {
|
|||
vec.push_back(att1);
|
||||
vec.push_back(att2);
|
||||
|
||||
//beginning testing of core DB functions
|
||||
engine.createTable("table1", vec);
|
||||
engine.showTables("table1");
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue