tinybase-0.1.4 has been yanked.
TinyBase
TinyBase is an in-memory database built with Rust, based on the sled embedded key-value store. It supports indexing and constraints, allowing you to create efficient queries and ensure data consistency.
Features
- In-memory storage for fast access.
- Built on top of sled for a reliable key-value store.
- Indexing support for efficient querying.
- Constraints to ensure data consistency.
Installation & Setup
To use TinyBase in your Rust project, add the following line to your Cargo.toml file's [dependencies]
section.:
= { = "0.1.4", = ["derive"] }
Usage Example
Here's a simple example demonstrating how to use TinyBase with a Person
struct.
This example demonstrates how to create a new TinyBase instance, open a table (or create one if it doesn't exist), add indexes and constraints, and perform basic operations (insert/select).
You can view more examples in examples