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