{"repo":"pmagaz/reddb","free":true,"listed":false,"github":"https://github.com/pmagaz/reddb","clone":"git clone https://github.com/pmagaz/reddb.git","description":"Minimalistic in-memory embedded database for Rust with optional persistence.","language":"Rust","stars":30,"topics":["rust","json","database","persistance","inserting-data","ron"],"license":"MIT","category":"databases-storage","readme_excerpt":"RedDB A minimalistic, async, in-memory embedded document database for Rust with optional WAL-based persistence. Features - In-memory first — the live store is an Arc . Every read and write hits RAM; disk is never on the hot path. - Optional persistence — a WAL-style append-only log survives process restarts. Choose MemDb for pure in-memory operation or a typed alias ( BinDb , JsonDb , RonDb , YamlDb ) for durability. - Async-first — built on Tokio 1.x; every I/O method is async . - Pluggable serializers — Binary (bincode), JSON, RON, and YAML, each behind an optional feature flag. - Closure-based queries — QueryBuilder with .filter() , .order by() , .skip() , .limit() , terminating with .all() , .first() , .count() , or .ids() . - Bulk updates and deletes — update where and delete where accept arbitrary predicates. - Transactions — begin() / commit() / rollback() buffer operations and apply them atomically. - Hash indexes — add index registers a string-keyed index maintained automatically on every write; using index looks up documents in O(1). - Compaction — compact() rewrites the log with exactly one record per live document. - Configurable write order — MemoryFirst (default, faster) or FileFirst (stronger durability guarantee). --- Quick start Batch insert and equality-based operations: --- Persistence Use a serializer-typed alias to enable file persistence. The database appends to a WAL on every write and reloads the full state on open or new . The file is named (e.g. note","default_branch":null,"files":null,"tree":[],"storefront":"/r/pmagaz","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pmagaz/reddb/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}