salvo-database

Integrate SQLx, SeaORM, and Diesel databases into Salvo apps.

20|5|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/salvo-rs/salvo-skills --skill salvo-database
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: salvo-database
Source: https://github.com/salvo-rs/salvo-skills/tree/main/skills/salvo-database
Command: npx skills add https://github.com/salvo-rs/salvo-skills --skill salvo-database

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Integrate relational databases with Salvo applications using SQLx, Diesel, SeaORM, or other ORMs for persistent data storage and robust data access patterns.

Core Features & Use Cases

  • ORM integrations: SQLx, SeaORM, and Diesel support for async and sync workflows.
  • Depot injection and pooling: seamless injection of database connections into handlers with transaction support.
  • Transactions and consistency: coordinate multi-step operations with rollback safety.
  • Complete examples: end-to-end patterns for common CRUD workflows in Salvo.

Quick Start

Create a database pool (for example PgPool) and inject it into the Salvo router to start performing simple CRUD operations.

Frequently Asked Questions about salvo-database

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect a Salvo app to a PostgreSQL database?

To connect a Salvo app to PostgreSQL, create a database pool like PgPool and inject it into the Salvo router to start performing reliable CRUD operations.

Can I use SQLx, SeaORM, and Diesel together in a single Salvo project?

Yes, this skill supports multi-ORM interoperability, allowing you to integrate SQLx, SeaORM, and Diesel across both async and sync workflows within your Salvo project.

How does depot injection handle database connections in Salvo?

Depot injection seamlessly injects database connections and pooling into Salvo handlers, providing transactional integrity and rollback safety for multi-step operations.

What is the best way to manage database transactions in a Salvo web application?

Manage database transactions in Salvo using integrated ORM support, which coordinates multi-step operations with rollback safety to ensure transactional consistency across workflows.

Does this database integration support both async and sync Rust workflows?

Yes, the database integration supports both async and sync contexts, enabling SQLx, SeaORM, and Diesel to function reliably across different Rust execution environments.