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
e74b2a97
Commit
e74b2a97
authored
Oct 25, 2017
by
Casualet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add proxy and verify
parent
6920414c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
3 deletions
+36
-3
Makefrag
main/Makefrag
+1
-1
change_test.cc
main/change_test.cc
+27
-0
test_proxy.cc
main/test_proxy.cc
+0
-2
verify.sh
verify.sh
+8
-0
No files found.
main/Makefrag
View file @
e74b2a97
...
...
@@ -7,7 +7,7 @@ CRYPTDB_SRCS := schema.cc Translator.cc Connect.cc \
rewrite_func.cc rewrite_sum.cc metadata_tables.cc \
error.cc stored_procedures.cc rewrite_ds.cc rewrite_main.cc big_proxy.cc
CRYPTDB_PROGS:= cdb_test load_and_store test_layer test_schema test_proxy
CRYPTDB_PROGS:= cdb_test load_and_store test_layer test_schema test_proxy
change_test
CRYPTDBPROGOBJS := $(patsubst %,$(OBJDIR)/main/%,$(CRYPTDB_PROGS))
...
...
main/change_test.cc
0 → 100644
View file @
e74b2a97
#include "big_proxy.hh"
#include <vector>
using
std
::
string
;
using
std
::
vector
;
vector
<
string
>
queries
{
"show databases;"
,
"create database if not exists tdb2;"
,
"use tdb2;"
,
"create table if not exists student(id integer, name varchar(50));"
,
"insert into student values(1,'shao'),(2,'xiaocai'),(3,'nans'),(4,'hehe'),(5,'oo');"
,
"select * from student;"
,
"select id from student;"
,
"select name from student;"
,
"select sum(id) from student;"
};
int
main
(
int
argc
,
char
**
argv
)
{
big_proxy
b
;
for
(
auto
query
:
queries
){
b
.
go
(
query
);
std
::
cout
<<
query
<<
" pass!"
<<
std
::
endl
;
}
std
::
cout
<<
"pass ALL !!"
<<
std
::
endl
;
return
0
;
}
main/test_proxy.cc
View file @
e74b2a97
#include "big_proxy.hh"
using
std
::
string
;
int
main
(
int
argc
,
char
**
argv
)
{
big_proxy
b
;
...
...
verify.sh
0 → 100755
View file @
e74b2a97
mysql
-uroot
-pletmein
-h127
.0.0.1
-e
"drop database if exists tpcc1000"
mysql
-uroot
-pletmein
-h127
.0.0.1
-e
"drop database if exists tdb"
mysql
-uroot
-pletmein
-h127
.0.0.1
-e
"drop database if exists tdb2"
mysql
-uroot
-pletmein
-h127
.0.0.1
-e
"drop database if exists tdb3"
rm
-rf
./shadow/
*
##running this twice will caurse troubles because of the metadata mismatch
./obj/main/change_test
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