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
Rebecca Schofield 8dc821422b oosp
2015-09-15 21:42:08 -05:00

33 lines
674 B
C++
Executable file

#include <iostream>
#include <vector>
#include "DBEngine.h"
using namespace std;
//still in progress
int main() {
DBEngine engine;
Attribute att1("shamWow", "VARCHAR(10)", true);
att1.addRow("rag");
att1.addRow("sponge");
att1.addRow("wooow");
att1.addRow("cloth");
att1.display();
Attribute att2("doom", "VARCHAR(20)", false);
att2.addRow("zombieman");
att2.addRow("revenant");
att2.addRow("imp");
att2.addRow("archvile");
att2.display();
vector<Attribute> vec;
vec.push_back(att1);
vec.push_back(att2);
//beginning testing of core DB functions
engine.createTable("table1", vec);
engine.showTables("table1");
}