Commit 39511b6f authored by yiwenshao's avatar yiwenshao

able to use backupSchema.sh script

parent 7021b816
db='tpcc1000'
if [ $# = 1 ];then
db=$1
fi
dir=${db}_schema
rm -rf $dir
mkdir $dir
../tls/mysql_wrapper/backupSchema $db > ${dir}/schema
cp -r ../../shadow ${dir}
......@@ -12,7 +12,7 @@ void backupSchema(string query){
DBResult * result = dbresult.get();
vector<vector<string>> rows = result->getRows();
cout<<"/* "<<rows[0][0]<<" */"<<endl;
cout<<rows[0][1]<<endl;
cout<<rows[0][1]<<";\n"<<endl;
// for(auto row:rows){
// for(int i=0;i<row.size();i++){
......
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