Skip to content

Commit ddd974a

Browse files
committed
Add protocol compliant PostgresKvStore impl.
This impl is protocol compliant but missing a few key optimizations and error handling.
1 parent fd36e99 commit ddd974a

File tree

3 files changed

+382
-9
lines changed

3 files changed

+382
-9
lines changed

rust/impls/Cargo.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,12 @@ edition = "2021"
66
[dependencies]
77
async-trait = "0.1.77"
88
api = { path = "../api" }
9+
chrono = "0.4.38" #TODO: Evaluate if necessary.
10+
tokio-postgres = { version = "0.7.12", features = ["with-chrono-0_4"] }
11+
bb8 = "0.7"
12+
bb8-postgres = "0.7"
13+
bytes = "1.4.0"
14+
15+
[dev-dependencies]
16+
tokio = { version = "1.38.0", default-features = false, features = ["rt-multi-thread", "macros"] }
17+
api = { path = "../api", features = ["_test_utils"] }

rust/impls/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@
1313

1414
/// Contains [PostgreSQL](https://www.postgresql.org/) based backend implementation for VSS.
1515
pub mod postgres_store;
16+
17+
#[macro_use]
18+
extern crate api;

0 commit comments

Comments
 (0)