From 08ee3eb24e28b1b69087fae98913f17504dc787f Mon Sep 17 00:00:00 2001 From: zhouzilong <529620861@qq.com> Date: Tue, 27 Feb 2024 13:02:57 -0500 Subject: [PATCH] init db --- Cargo.toml | 4 +++- src/db/mod.rs | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/db/mod.rs diff --git a/Cargo.toml b/Cargo.toml index 67d32d9..6c16e15 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,4 +28,6 @@ rust-version = "1.75.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] rocket = { version = "0.5.0", features = ["json", "http2"] } -dotenv = "0.15.0" \ No newline at end of file +iceberg = { src = "./libs/iceberg" } +dotenv = "0.15.0" +pickledb = "^0.5.0" \ No newline at end of file diff --git a/src/db/mod.rs b/src/db/mod.rs new file mode 100644 index 0000000..2842023 --- /dev/null +++ b/src/db/mod.rs @@ -0,0 +1,5 @@ +use pickledb::PickleDb; + +struct db { + client: PickleDb, +}