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
729da60d
Commit
729da60d
authored
Feb 24, 2018
by
yiwenshao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add template
parent
abd03025
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
+16
-12
debug_proxy.cc
debug/debug_proxy.cc
+8
-12
sql.template
input/sql.template
+8
-0
No files found.
debug/debug_proxy.cc
View file @
729da60d
...
@@ -6,18 +6,14 @@ int
...
@@ -6,18 +6,14 @@ int
main
(
int
argc
,
char
**
argv
)
{
main
(
int
argc
,
char
**
argv
)
{
big_proxy
b
(
"tdb"
,
"127.0.0.1"
,
"root"
,
"letmein"
,
3306
);
big_proxy
b
(
"tdb"
,
"127.0.0.1"
,
"root"
,
"letmein"
,
3306
);
//std::string query;
std
::
string
filename
=
std
::
string
(
cryptdb_dir
)
+
"/input/"
+
"sql"
;
//std::getline(std::cin,query);
std
::
ifstream
infile
(
filename
);
std
::
string
line
;
std
::
string
filename
=
std
::
string
(
cryptdb_dir
)
+
"/"
+
"sql"
;
while
(
std
::
getline
(
infile
,
line
))
{
std
::
cout
<<
filename
<<
std
::
endl
;
if
(
line
.
size
()
>
1
)
{
b
.
go
(
line
);
UNUSED
(
b
);
}
}
// while(query != "quit"){
// b.go(query);
// std::getline(std::cin,query);
// }
return
0
;
return
0
;
}
}
input/sql.template
View file @
729da60d
show databases;
create database temp;
use temp;
create table student(id integer);
insert into student values(1),(2),(3),(4),(5);
select * from student;
select sum(id) from student;
drop database temp;
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