This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
dmspine64backup/DBEngine.h

39 lines
630 B
C
Raw Normal View History

2015-09-15 16:30:25 -05:00
#include <fstream>
#include <iostream>
#include <vector>
#include "Relation.h"
2015-09-15 21:31:19 -05:00
//still in progress
2015-09-15 21:13:15 -05:00
class DBEngine {
2015-09-15 21:31:19 -05:00
vector<Relation> tables;
int size;
2015-09-15 16:30:25 -05:00
public:
2015-09-15 21:31:19 -05:00
DBEngine(){
size = 0;
}
void createTable(string n, vector<Attribute> a) {
Relation r(n, a);
tables.push_back(r);
}
2015-09-15 21:13:15 -05:00
2015-09-15 21:31:19 -05:00
void createTable(Relation r) {
2015-09-15 21:13:15 -05:00
tables.push_back(r);
}
2015-09-15 21:31:19 -05:00
void showTable() {}
void saveToFile() { /*???*/ }
void insertTuple() {}
void deleteTuple() {}
void selectTuples() {}
void project() {}
void product() {}
void unionComp() {}
2015-09-15 21:13:15 -05:00
vector<Relation> getRelations() {
return tables;
}
2015-09-15 16:30:25 -05:00
};