From 91f7a1c413a8be587fdc0b357fe6412e89d16d7d Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sat, 23 May 2015 20:08:33 +0200 Subject: Clean up main and add delete test to main --- engine.cpp | 106 +++++++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 71 insertions(+), 35 deletions(-) (limited to 'engine.cpp') diff --git a/engine.cpp b/engine.cpp index e99576c..6e46269 100644 --- a/engine.cpp +++ b/engine.cpp @@ -26,55 +26,91 @@ void createTable(string name,T&&... args){ int main(int argc,char **argv){ - ColHeader *header=new ColHeader[3]; - header[0]={RH_INT32,0}; - header[1]={RH_UINT32,0}; - header[2]={RH_BYTES,10}; + { + ColHeader *header=new ColHeader[3]; + header[0]={RH_INT32,0}; + header[1]={RH_UINT32,0}; + header[2]={RH_BYTES,10}; + + CreateQuery cqu; + cqu.tablename="hoi"; + cqu.nc=3; + cqu.setHeader(header); + QueryResult res=cqu.execute(tables); + + cout<<"Create table \"hoi\", Result: "<rows.size()<<" row"<<(hoitb->rows.size()==1?"":"s")<<'.'<