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

29 lines
575 B
C++
Raw Normal View History

2015-09-14 15:04:54 -05:00
#include <iostream>
2015-09-15 20:16:58 -05:00
#include <vector>
2015-09-15 21:31:19 -05:00
#include "DBEngine.h"
2015-09-14 18:31:05 -05:00
2015-09-15 21:31:19 -05:00
//still in progress
2015-09-15 20:55:21 -05:00
int main() {
2015-09-15 21:31:19 -05:00
DBEngine engine;
Attribute att1("shamWow", "VARCHAR(10)", true);
att1.addRow("rag");
att1.addRow("sponge");
att1.addRow("wooow");
att1.addRow("cloth");
att1.display();
2015-09-15 20:16:58 -05:00
2015-09-15 21:31:19 -05:00
Attribute att2("doom", "VARCHAR(20)", false);
att2.addRow("zombieman");
att2.addRow("revenant");
att2.addRow("imp");
att2.addRow("archvile");
att2.display();
2015-09-15 20:16:58 -05:00
2015-09-15 21:31:19 -05:00
vector<Attribute> vec;
vec.push_back(att1);
vec.push_back(att2);
2015-09-15 20:16:58 -05:00
2015-09-15 21:31:19 -05:00
engine.createTable("table1", vec);
2015-09-15 10:21:16 -05:00
}