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/parsertest.cpp
2015-10-06 19:51:31 -05:00

19 lines
550 B
C++
Executable file

#include <iostream>
#include <vector>
#include "Parser.h"
#include "Condition.h"
#include "DBEngine.h"
//#include "user.h"
using namespace std;
int main () {
DBEngine engine;
vector<string> s;
s.push_back("CREATE TABLE animals ( name VARCHAR(20), kind VARCHAR(8), years INTEGER ) PRIMARY KEY ( name, kind ) ;");
s.push_back("CREATE TABLE animals2 ( name VARCHAR(20), kind VARCHAR(8), years INTEGER ) PRIMARY KEY ( name, kind ) ;");
s.push_back("SHOW animals2 ;");
s.push_back("SHOW animals2 ;");
parseList(s, engine);
}