56 lines
1.1 KiB
C++
Executable file
56 lines
1.1 KiB
C++
Executable file
#include <iostream>
|
|
#include <vector>
|
|
#include "Parser.h"
|
|
<<<<<<< HEAD
|
|
//#include "Condition.h"
|
|
#include "DBEngine.h"
|
|
#include "user.h"
|
|
=======
|
|
#include "Condition.h"
|
|
#include "DBEngine.h"
|
|
>>>>>>> e3ef70bf1536697f14395063975a6376b7df6f61
|
|
|
|
using namespace std;
|
|
|
|
int main () {
|
|
<<<<<<< HEAD
|
|
|
|
=======
|
|
DBEngine engine;
|
|
|
|
Attribute att1("Breakfast", "VARCHAR(20)", true);
|
|
Attribute att2("Lunch", "VARCHAR(20)", false);
|
|
Attribute att3("Dinner", "VARCHAR(20)", false);
|
|
|
|
att1.addCell("Pancakes");
|
|
att1.addCell("Waffles");
|
|
att1.addCell("Biscuits");
|
|
att2.addCell("Turkey Sandwich");
|
|
att2.addCell("Caesar Salad");
|
|
att2.addCell("Pizza");
|
|
att3.addCell("Steak");
|
|
att3.addCell("Shrimp");
|
|
att3.addCell("Ribs");
|
|
|
|
vector<Attribute> v;
|
|
v.push_back(att1);
|
|
v.push_back(att2);
|
|
v.push_back(att3);
|
|
|
|
engine.createTable("Food", v);
|
|
|
|
//engine.update
|
|
|
|
/*actual testing
|
|
string x;
|
|
|
|
cout << "Enter DBMS Commands: ";
|
|
while(getline(cin, x))
|
|
{
|
|
//cout << x << endl;
|
|
parse(x, engine);
|
|
cout << "Enter DBMS Commands: ";
|
|
}
|
|
*/
|
|
>>>>>>> e3ef70bf1536697f14395063975a6376b7df6f61
|
|
}
|