Crates.io | typesafe_repository |
lib.rs | typesafe_repository |
version | 0.5.6 |
source | src |
created_at | 2023-01-20 16:23:33.110128 |
updated_at | 2024-07-04 10:03:54.907798 |
description | Abstract data persistence in a safe and unified way |
homepage | |
repository | https://gitlab.com/studiedlist/typesafe_repository |
max_upload_size | |
id | 763450 |
size | 90,883 |
ValidIdentity
and IdentityOf
)Add
, Get
, List
unimplemented!()
or blanket implementations- construct your own repository based on set of traitsHCons
with rollback feature transactional traits and RepositoryWrapper
RepositoryWrapper
rollback support
seamless transactional and non-transactional interop for RepositoryWrapper
IdentityBy
-like trait for marker structs
optional serde support
sync/async operations with optional features
sync transactions support
pointer-based ValidIdentity
pass previous operation result as next operation argument in transactions
HCons
wrapper for more convenient output extraction
TransactionRunner
settings and different mappers
transaction log
trait generation based on methods names (like in Spring repositories)
Many generic bounds were made out of heuristics, so feel free to propose reasonable bound changes
Project is in early stage, expect breaking API changes