Commit e9dd8169 authored by yiwenshao's avatar yiwenshao

able to init micro bechmark

parent 71f45eca
#include "main/big_proxy.hh"
#include <vector>
using std::string;
int
main(int argc,char ** argv) {
if(argc!=2){
std::cout<<"expect 1 argument"<<std::endl;
return 0;
}
string length(argv[1]);
std::vector<string> create{
"drop database if exists micro_db;",
"create database micro_db;",
"use micro_db;",
"create table int_table(id integer);",
string("create table str_table(name varchar(")+length+"));"
};
big_proxy b;
for(auto item:create){
b.go(item);
}
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment