diff --git a/DBEngine.h b/DBEngine.h index ed5de9c..4452ec2 100755 --- a/DBEngine.h +++ b/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*/ } diff --git a/test.cpp b/test.cpp index bd7f2f3..017d8e9 100755 --- a/test.cpp +++ b/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"); + }