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
d17a467f
Commit
d17a467f
authored
May 16, 2017
by
casualet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify cdbtest to show more info
parent
5d6dce4d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cdb_test.cc
main/cdb_test.cc
+3
-3
No files found.
main/cdb_test.cc
View file @
d17a467f
...
@@ -355,7 +355,7 @@ void batchTogether(std::string client, std::string curQuery,unsigned long long _
...
@@ -355,7 +355,7 @@ void batchTogether(std::string client, std::string curQuery,unsigned long long _
static
void
processFieldMeta
(
const
FieldMeta
&
field
){
static
void
processFieldMeta
(
const
FieldMeta
&
field
){
std
::
cout
<<
GREEN_BEGIN
<<
"PRINT FieldMeta"
<<
COLOR_END
<<
std
::
endl
;
std
::
cout
<<
GREEN_BEGIN
<<
"PRINT FieldMeta"
<<
COLOR_END
<<
std
::
endl
;
for
(
const
OnionMeta
&
onion
:
field
.
getChildren
()){
for
(
const
std
::
pair
<
const
OnionMetaKey
,
std
::
unique_ptr
<
OnionMeta
>
>
&
onion
:
field
.
getChildren
()){
std
::
cout
<<
onion
.
second
->
getDatabaseID
()
<<
":"
<<
onion
.
first
.
getValue
()
<<
std
::
endl
;
std
::
cout
<<
onion
.
second
->
getDatabaseID
()
<<
":"
<<
onion
.
first
.
getValue
()
<<
std
::
endl
;
}
}
std
::
cout
<<
GREEN_BEGIN
<<
"end FieldMeta"
<<
COLOR_END
<<
std
::
endl
;
std
::
cout
<<
GREEN_BEGIN
<<
"end FieldMeta"
<<
COLOR_END
<<
std
::
endl
;
...
@@ -363,7 +363,7 @@ static void processFieldMeta(const FieldMeta &field){
...
@@ -363,7 +363,7 @@ static void processFieldMeta(const FieldMeta &field){
static
void
processTableMeta
(
const
TableMeta
&
table
){
static
void
processTableMeta
(
const
TableMeta
&
table
){
std
::
cout
<<
GREEN_BEGIN
<<
"PRINT TableMeta"
<<
COLOR_END
<<
std
::
endl
;
std
::
cout
<<
GREEN_BEGIN
<<
"PRINT TableMeta"
<<
COLOR_END
<<
std
::
endl
;
for
(
const
FieldMeta
&
field
:
table
.
getChildren
()){
for
(
const
std
::
pair
<
const
IdentityMetaKey
,
std
::
unique_ptr
<
FieldMeta
>
>
&
field
:
table
.
getChildren
()){
std
::
cout
<<
field
.
second
->
getDatabaseID
()
<<
":"
<<
field
.
first
.
getValue
()
<<
std
::
endl
;
std
::
cout
<<
field
.
second
->
getDatabaseID
()
<<
":"
<<
field
.
first
.
getValue
()
<<
std
::
endl
;
processFieldMeta
(
*
(
field
.
second
));
processFieldMeta
(
*
(
field
.
second
));
}
}
...
@@ -376,7 +376,7 @@ static void processDatabaseMeta(const DatabaseMeta & dbm,std::string table="stud
...
@@ -376,7 +376,7 @@ static void processDatabaseMeta(const DatabaseMeta & dbm,std::string table="stud
return
;
return
;
std
::
cout
<<
GREEN_BEGIN
<<
"PRINT DatabaseMeta"
<<
COLOR_END
<<
std
::
endl
;
std
::
cout
<<
GREEN_BEGIN
<<
"PRINT DatabaseMeta"
<<
COLOR_END
<<
std
::
endl
;
for
(
const
auto
&
table
:
dbm
.
getChildren
()){
for
(
const
std
::
pair
<
const
IdentityMetaKey
,
std
::
unique_ptr
<
TableMeta
>
>
&
table
:
dbm
.
getChildren
()){
processTableMeta
(
*
(
table
.
second
));
processTableMeta
(
*
(
table
.
second
));
}
}
}
}
...
...
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