Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
Practical-Cryptdb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhaozhen
Practical-Cryptdb
Commits
39511b6f
Commit
39511b6f
authored
Jan 09, 2018
by
yiwenshao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
able to use backupSchema.sh script
parent
7021b816
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
backupSchema.sh
packages/operation/backupSchema.sh
+11
-0
backupSchema
packages/tls/mysql_wrapper/backupSchema
+0
-0
backupSchema.cc
packages/tls/mysql_wrapper/backupSchema.cc
+1
-1
No files found.
packages/operation/backupSchema.sh
0 → 100755
View file @
39511b6f
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
}
packages/tls/mysql_wrapper/backupSchema
View file @
39511b6f
No preview for this file type
packages/tls/mysql_wrapper/backupSchema.cc
View file @
39511b6f
...
@@ -12,7 +12,7 @@ void backupSchema(string query){
...
@@ -12,7 +12,7 @@ void backupSchema(string query){
DBResult
*
result
=
dbresult
.
get
();
DBResult
*
result
=
dbresult
.
get
();
vector
<
vector
<
string
>>
rows
=
result
->
getRows
();
vector
<
vector
<
string
>>
rows
=
result
->
getRows
();
cout
<<
"/* "
<<
rows
[
0
][
0
]
<<
" */"
<<
endl
;
cout
<<
"/* "
<<
rows
[
0
][
0
]
<<
" */"
<<
endl
;
cout
<<
rows
[
0
][
1
]
<<
endl
;
cout
<<
rows
[
0
][
1
]
<<
";
\n
"
<<
endl
;
// for(auto row:rows){
// for(auto row:rows){
// for(int i=0;i<row.size();i++){
// for(int i=0;i<row.size();i++){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment