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
Rebecca Schofield dc3bbcba37 new framework
2015-09-15 21:31:19 -05:00

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;
}
};