salvo-database
Installation
SKILL.md
Salvo Database Integration
Share a pool via affix_state::inject(pool) and pull it out with depot.get_typed::<T>().
depot.get_typed::<T>() returns Result<&T, _> (NOT Option). Convert to a Salvo error with .map_err(|_| StatusError::internal_server_error()) or propagate with ? after conversion.
Requires the affix-state feature on salvo:
salvo = { version = "0.94.0", features = ["affix-state"] }