updated DB engine
This commit is contained in:
parent
94912e6b14
commit
92a5ba2e93
1 changed files with 10 additions and 14 deletions
22
DBEngine.h
22
DBEngine.h
|
@ -6,20 +6,16 @@
|
|||
using namespace std;
|
||||
|
||||
class DBEngine {
|
||||
//member variables
|
||||
//NOT DONE
|
||||
//vector<Relation> tables;
|
||||
vector<Relation> tables;
|
||||
|
||||
public:
|
||||
DBEngine();
|
||||
void createCmd();
|
||||
//void openCmd();
|
||||
void saveCmd();
|
||||
void showCmd();
|
||||
void insertQuery();
|
||||
void deleteQuery();
|
||||
void selectQuery();
|
||||
void projectQuery();
|
||||
void productQuery();
|
||||
bool unionComp();
|
||||
|
||||
void addRelation(Relation r) {
|
||||
tables.push_back(r);
|
||||
}
|
||||
|
||||
vector<Relation> getRelations() {
|
||||
return tables;
|
||||
}
|
||||
};
|
||||
|
|
Reference in a new issue