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"] }

SQLx

Installs
26
GitHub Stars
20
First Seen
Feb 10, 2026
salvo-database — salvo-rs/salvo-skills