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/test.cpp

57 lines
1.1 KiB
C++
Raw Normal View History

2015-09-30 17:10:16 -05:00
#include <iostream>
#include <vector>
#include "Parser.h"
2015-09-30 17:27:46 -05:00
<<<<<<< HEAD
2015-09-30 17:10:16 -05:00
//#include "Condition.h"
#include "DBEngine.h"
#include "user.h"
2015-09-30 17:27:46 -05:00
=======
2015-09-30 16:48:54 -05:00
#include "Condition.h"
2015-09-15 21:31:19 -05:00
#include "DBEngine.h"
2015-09-30 17:27:46 -05:00
>>>>>>> e3ef70bf1536697f14395063975a6376b7df6f61
2015-09-30 17:10:16 -05:00
using namespace std;
int main () {
2015-09-30 17:27:46 -05:00
<<<<<<< HEAD
=======
2015-09-30 16:50:25 -05:00
DBEngine engine;
2015-09-25 00:29:00 -05:00
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);
2015-09-22 09:03:42 -05:00
engine.createTable("Food", v);
2015-09-26 23:24:24 -05:00
2015-09-30 16:48:54 -05:00
//engine.update
2015-09-26 23:24:24 -05:00
2015-09-30 16:50:25 -05:00
/*actual testing
2015-09-28 17:02:04 -05:00
string x;
2015-09-30 17:10:16 -05:00
2015-09-28 17:02:04 -05:00
cout << "Enter DBMS Commands: ";
while(getline(cin, x))
{
//cout << x << endl;
parse(x, engine);
cout << "Enter DBMS Commands: ";
}
2015-09-30 16:48:54 -05:00
*/
2015-09-30 17:27:46 -05:00
>>>>>>> e3ef70bf1536697f14395063975a6376b7df6f61
2015-09-30 17:10:16 -05:00
}