diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-03 08:54:00 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-03 08:54:00 +0000 |
| commit | 2f8ecd482077d82f2d1a937c7f979eaaa87a27b2 (patch) | |
| tree | cd892cde6ef6fd7ff654377946cab5b95339276f /Cargo.toml | |
| parent | 62a3855cb96616caf704a0f112fb2ade99fb8b45 (diff) | |
feat: implement LMDB database backend
- Add nostr-lmdb dependency (v0.44) for persistent storage
- Create SharedDatabase type alias for database abstraction
- Update all database-related functions to use trait object
- Support runtime selection via NGIT_DATABASE_BACKEND env var
Database backends:
- memory: In-memory (default, fastest, no persistence)
- lmdb: LMDB backend (persistent, general purpose)
All 34 tests pass with the new implementation.
Diffstat (limited to 'Cargo.toml')
| -rw-r--r-- | Cargo.toml | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -21,6 +21,7 @@ nostr-relay-builder = "0.44" | |||
| 21 | 21 | ||
| 22 | # Nostr | 22 | # Nostr |
| 23 | nostr-sdk = "0.44" | 23 | nostr-sdk = "0.44" |
| 24 | nostr-lmdb = "0.44" | ||
| 24 | 25 | ||
| 25 | # Utilities | 26 | # Utilities |
| 26 | futures-util = "0.3" | 27 | futures-util = "0.3" |