6 releases
| 0.1.7 | Aug 28, 2025 |
|---|---|
| 0.1.6 | Aug 28, 2025 |
#6 in #stream-ext
156 downloads per month
Used in storeit_sql_builder
105KB
1.5K
SLoC
storeit
Facade crate for the storeit repository framework.
This crate re-exports the core traits and macros so you can get started with a single dependency and feature flags to choose your backend(s).
Key features:
#[derive(Entity)]and#[repository]macros (viastoreit_macros)- Optional helpers:
query-ext,batch-ext,stream-ext,upsert-ext - Backend selection features to pull adapters transitively:
libsql-backend(viastoreit_libsql)postgres-backend(viastoreit_tokio_postgres)mysql-async(viastoreit_mysql_async)
Quick taste (see workspace README for complete examples):
use storeit::{Entity, Repository};
#[derive(Entity, Clone, Debug)]
pub struct User {
#[fetch(id)]
pub id: Option<i64>,
pub email: String,
pub active: bool,
}
Links:
- Workspace guide and examples: https://github.com/dahankzter/storeit-rs#readme
MSRV: 1.70 License: MIT OR Apache-2.0
Dependencies
~1–15MB
~141K SLoC