about summary refs log tree commit diff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorPjotr <wrk@bosa.lan>2026-10-11 11:17:55 +0000
committerPjotr <wrk@bosa.lan>2026-10-11 11:17:55 +0000
commitab13b3dcca0d832434e190bd716b213e6d8d64f0 (patch)
treef58a3462cacfd26747aa11f2138470f93a13bfe7 /src/lib.rs
parent69aac61b0c5b2d8a4f909de6a6d6af8d6ee293a3 (diff)
downloadgenenetwork4-ab13b3dcca0d832434e190bd716b213e6d8d64f0.tar.gz
Embedded stores: add LMDB, DuckDB and SQLite support
Add src/embedded.rs with lmdb/duckdb/sqlite round-trip helpers and
tests/embedded.rs integration tests: an LMDB put/get (surviving a
fresh environment handle), an in-memory DuckDB query, and a SQLite
query.

Depend on the system libraries rather than bundled builds:
duckdb 1.10506.0, lmdb 0.8.0 and rusqlite 0.40.2 with their default
features, so the Guix build reuses libduckdb/liblmdb/libsqlite3 instead
of compiling its own.

Guix wiring (guix.scm): add the duckdb, lmdb and sqlite inputs
((gnu packages duckdb)/(gnu packages databases)/(gnu packages sqlite)),
a set-duckdb-paths phase that points libduckdb-sys at the system
libduckdb via DUCKDB_LIB_DIR/DUCKDB_INCLUDE_DIR (there is no
duckdb.pc), and the 79 new crate sources in rust-package.scm
(regenerated with `guix import crate -f Cargo.lock genenetwork4`).
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 42b2da7..cfe2c59 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -8,6 +8,7 @@ use utoipa_axum::routes;
 pub mod auth;
 pub mod config;
 mod db;
+pub mod embedded;
 mod error;
 pub mod response;
 mod routes;