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
42ef508b
Commit
42ef508b
authored
Jan 31, 2018
by
yiwenshao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
able to use store_fields for a database
parent
c823bc83
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
store_fields.cc
debug/store_fields.cc
+3
-4
No files found.
debug/
test_store_field
.cc
→
debug/
store_fields
.cc
View file @
42ef508b
...
...
@@ -89,17 +89,16 @@ static void store(std::string db, std::string table,std::string dir){
int
main
(
int
argc
,
char
*
argv
[]){
std
::
string
db
=
"tdb"
,
table
=
"student"
;
std
::
string
db
=
"tdb"
;
std
::
string
ip
=
"127.0.0.1"
;
std
::
string
dir
=
"onlyfields"
;
int
port
=
3306
;
if
(
argc
==
5
){
ip
=
std
::
string
(
argv
[
1
]);
db
=
std
::
string
(
argv
[
2
]);
table
=
std
::
string
(
argv
[
3
]);
dir
=
std
::
string
(
argv
[
4
]);
dir
=
std
::
string
(
argv
[
3
]);
}
else
{
std
::
cout
<<
"need ip, db,
table
"
<<
std
::
endl
;
std
::
cout
<<
"need ip, db,
dir
"
<<
std
::
endl
;
return
0
;
}
init
(
ip
,
port
);
...
...
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