Update DBEngine.h
This commit is contained in:
parent
ecc31ea072
commit
5cadbd35ae
1 changed files with 9 additions and 4 deletions
13
DBEngine.h
13
DBEngine.h
|
@ -1,3 +1,4 @@
|
|||
#pragma once
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
|
@ -6,8 +7,9 @@
|
|||
//still in progress
|
||||
class DBEngine{
|
||||
vector<Relation> tables;
|
||||
vector<string> commands;
|
||||
int size;
|
||||
|
||||
|
||||
public:
|
||||
DBEngine();
|
||||
void createTable(string n);
|
||||
|
@ -17,10 +19,13 @@ public:
|
|||
//void showTable(Relation r);
|
||||
Relation& getTableFromName(string n);
|
||||
void saveToFile(vector<string> cmds);
|
||||
//Relation selection();
|
||||
Relation selection(string attName, string s, Relation r);
|
||||
Relation projection(vector<string> input, Relation r);
|
||||
Relation product(string s1, Relation r1, Relation r2);
|
||||
void rename(Relation& r, vector<string> oldnames, vector<string> newnames);
|
||||
//void setUnion();
|
||||
void save();
|
||||
void storeCommands(string s);
|
||||
//Relation setUnion(Relation r1, Relation r2);
|
||||
//void setDiff();
|
||||
//void crossProduct();
|
||||
//void crossProduct();
|
||||
};
|
||||
|
|
Reference in a new issue