occlum/demos/sqlite
Zheng, Qi a5e74f2769 Update sqlite demo with copy_bom tool
Signed-off-by: Zheng, Qi <huaiqing.zq@antgroup.com>
2021-09-26 15:36:09 +08:00
..
.gitignore Rename "occlum_context" to "occlum_instance" for demos 2020-08-15 19:12:39 +08:00
download_and_build_sqlite.sh Add '-DSQLITE_MMAP_READWRITE' for SQLite demo 2021-05-31 18:48:24 +08:00
README.md Add SQLite demo 2020-02-25 11:14:48 +00:00
run_sqlite_on_occlum.sh Update sqlite demo with copy_bom tool 2021-09-26 15:36:09 +08:00
sqlite_demo.c Add SQLite demo 2020-02-25 11:14:48 +00:00
sqlite.yaml Update sqlite demo with copy_bom tool 2021-09-26 15:36:09 +08:00

Use SQLite in SGX with Occlum

This project demonstrates how Occlum enables SQLite in SGX enclaves.

Step 1: Download SQLite and build the demo program

./download_and_build_sqlite.sh

When completed, the demo program (i.e., sqlite_demo) is generated.

Step 2: Run the SQLite demo program inside SGX enclave with Occlum

./run_sqlite_on_occlum.sh

Step 3 (Optional): Run the SQLite demo program in Linux

./sqlite_demo <database> <sql-statement>