Overview
Idiomatic and safe Rust APIs for interacting with the Symas Lightning Memory-Mapped Database (LMDB). This fork is optimized for use within the AIngle distributed systems framework.
Features
- Memory-mapped I/O - Direct memory access for high performance
- ACID transactions - Full transaction support with MVCC
- Zero-copy reads - Access data directly without copying
- Nested transactions - Hierarchical transaction support
- Cursors - Efficient iteration over key-value pairs
- Cross-platform - Linux, macOS, Windows support
Installation
[]
= "0.1"
Quick Start
use ;
use Path;
Crates
| Crate | Description |
|---|---|
lmdb-rkv |
High-level Rust API |
lmdb-rkv-sys |
Low-level FFI bindings |
Building from Source
# Clone with submodules
# Build
# Run tests
Performance
LMDB provides exceptional read performance through memory-mapped files:
| Operation | Performance |
|---|---|
| Read | O(1) - Direct memory access |
| Write | O(log n) - B+ tree insertion |
| Iteration | Sequential disk access |
Part of AIngle
This crate is part of the AIngle ecosystem - a Semantic DAG framework for IoT and distributed AI applications.
License
Licensed under the Apache License, Version 2.0. See LICENSE for details.