rust-repository
OfficialBuild robust data access with Rust & sqlx.
Authorgar-ai
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Provides a reusable Rust repository pattern and data access layer using sqlx, PgPool, and transaction/retry primitives, enabling reliable database operations in backend services.
Core Features & Use Cases
- Repository pattern with typed queries and pool-backed connections.
- Atomic batch processing with FOR UPDATE SKIP LOCKED to coordinate concurrent workers.
- Robust retry logic with exponential backoff and jitter to recover from transient errors.
- Heartbeat-based detection of stale processing and easy reset on startup.
- Read-only test mode for safe validation and fixtures.
Quick Start
Create a Rust project, wire a PgPool into VideoRepository, and run a sample that claims a batch and updates statuses.
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-repository Download link: https://github.com/gar-ai/mallorn/archive/main.zip#rust-repository 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.