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
0748e564
Commit
0748e564
authored
Jan 21, 2018
by
yiwenshao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
5d9ff989
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
+20
-6
micro_init_int.cc
debug/micro_init_int.cc
+17
-0
micro_init_str.cc
debug/micro_init_str.cc
+3
-6
No files found.
debug/micro_init_int.cc
0 → 100644
View file @
0748e564
#include "main/big_proxy.hh"
#include <vector>
using
std
::
string
;
int
main
(
int
argc
,
char
**
argv
)
{
std
::
vector
<
string
>
create
{
"create database micro_db;"
,
"use micro_db;"
,
"create table int_table(id integer);"
,
};
big_proxy
b
;
for
(
auto
item
:
create
){
b
.
go
(
item
);
}
return
0
;
}
debug/micro_init.cc
→
debug/micro_init
_str
.cc
View file @
0748e564
...
@@ -4,8 +4,8 @@ using std::string;
...
@@ -4,8 +4,8 @@ using std::string;
int
int
main
(
int
argc
,
char
**
argv
)
{
main
(
int
argc
,
char
**
argv
)
{
if
(
argc
!=
2
){
if
(
argc
<
2
){
std
::
cout
<<
"expect 1
argument
"
<<
std
::
endl
;
std
::
cout
<<
"expect 1
or 2 arguments
"
<<
std
::
endl
;
return
0
;
return
0
;
}
}
string
length
(
argv
[
1
]);
string
length
(
argv
[
1
]);
...
@@ -13,12 +13,9 @@ main(int argc,char ** argv) {
...
@@ -13,12 +13,9 @@ main(int argc,char ** argv) {
std
::
vector
<
string
>
create
{
std
::
vector
<
string
>
create
{
"create database micro_db;"
,
"create database micro_db;"
,
"use micro_db;"
,
"use micro_db;"
,
"create table int_table(id integer);"
,
string
(
"create table str_table(name varchar("
)
+
length
+
"));"
string
(
"create table str_table(name varchar("
)
+
length
+
"));"
};
};
big_proxy
b
;
big_proxy
b
;
for
(
auto
item
:
create
){
for
(
auto
item
:
create
){
b
.
go
(
item
);
b
.
go
(
item
);
}
}
...
...
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