38 lines
630 B
C++
Executable file
38 lines
630 B
C++
Executable file
#include <fstream>
|
|
#include <iostream>
|
|
#include <vector>
|
|
#include "Relation.h"
|
|
|
|
//still in progress
|
|
class DBEngine {
|
|
vector<Relation> tables;
|
|
int size;
|
|
|
|
public:
|
|
DBEngine(){
|
|
size = 0;
|
|
}
|
|
|
|
void createTable(string n, vector<Attribute> a) {
|
|
Relation r(n, a);
|
|
tables.push_back(r);
|
|
}
|
|
|
|
void createTable(Relation r) {
|
|
tables.push_back(r);
|
|
}
|
|
|
|
void showTable() {}
|
|
void saveToFile() { /*???*/ }
|
|
void insertTuple() {}
|
|
void deleteTuple() {}
|
|
void selectTuples() {}
|
|
void project() {}
|
|
void product() {}
|
|
void unionComp() {}
|
|
|
|
|
|
vector<Relation> getRelations() {
|
|
return tables;
|
|
}
|
|
};
|