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
2015-09-15 10:21:16 -05:00

26 lines
552 B
C++
Executable file

#include <iostream>
#include "db_engine.h"
using namespace std;
int main() {
db_engine engine;
vector<string> attributes;
vector<string> pkeys;
//we need a better way to do this
//going for function right now
attributes.push_back("username VARCHAR(20)");
attributes.push_back("password VARCHAR(20)");
pkeys.push_back("password");
engine.createCmd("users", attributes, pkeys);
vector<string> tuple;
tuple.push_back("csce315");
tuple.push_back("12345");
engine.insertQuery("users", tuple);
engine.saveCmd();
}