rust-sqlx-patterns
CommunityRobust SQLx patterns for Rust DB code.
Authorbrian861105
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Writing clean, maintainable database access in Rust by providing proven SQLx patterns for reads, writes, transactions, and dynamic queries.
Core Features & Use Cases
- Simple Reads/Writes: wrap queries into small helper functions using PgPool and map results to domain structs.
- Transactional Operations: use Transaction<'_, Postgres> to guarantee atomicity across statements.
- Reusable Queries with PgExecutor: write generic queries that work with a pool or a transaction.
- Complex/Optional Filters with SeaQuery: build dynamic filters for flexible querying.
- Migrations: structure and guidelines for SQL migrations with sqlx.
Quick Start
Start by implementing a simple read or write against a PgPool, then upgrade to transactional blocks and a reusable PgExecutor for complex operations.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: rust-sqlx-patterns Download link: https://github.com/brian861105/codex-skills/archive/main.zip#rust-sqlx-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.