{"repo":"ayarotsky/diesel-guard","free":true,"listed":false,"github":"https://github.com/ayarotsky/diesel-guard","clone":"git clone https://github.com/ayarotsky/diesel-guard.git","description":"Linter for dangerous Postgres migration patterns in Diesel and SQLx. Prevents downtime caused by unsafe schema changes.","language":"Rust","stars":120,"topics":["rust","postgresql","linter","zero-downtime","cli","database","diesel","migration","postgres","sqlx"],"license":"MIT","category":"databases-storage","readme_excerpt":"Diesel Guard 🐘💨 Linter for dangerous Postgres migration patterns in Diesel and SQLx. Prevents downtime caused by unsafe schema changes. ✓ Detects operations that lock tables or cause downtime ✓ Provides safe alternatives for each blocking operation ✓ Supports safety-assured blocks for verified operations ✓ Extensible with custom checks ✓ Works standalone or with any AI agent (Claude, Codex, Copilot, Gemini) Why diesel-guard? Uses PostgreSQL's own parser. diesel-guard embeds libpg query — the C library compiled into Postgres itself. What diesel-guard flags is exactly what Postgres sees. If your SQL has a syntax error, diesel-guard reports that too. Scriptable custom checks. Write project-specific rules in Rhai with full access to the SQL AST. No forking required. Version-aware. Configure postgres version to suppress checks that don't apply to your version (e.g., constant defaults are safe on PG 11+). No database connection required. Works on SQL files directly — no running Postgres instance needed in CI. Installation Via Cargo: Via Homebrew: Via shell script (macOS/Linux): Via PowerShell (Windows): Via Docker (Unix): Via Docker (Windows CMD): Via Docker (Windows PowerShell): Via pre-commit: Quick Start When it finds an unsafe migration: CI/CD Add to your GitHub Actions workflow: Pin the diesel-guard binary version for reproducible builds: Use with AI agents diesel-guard works with any AI agent that can run shell commands. Point your agent at skills/diesel-guard/SKILL.md for ","default_branch":null,"files":null,"tree":[],"storefront":"/r/ayarotsky","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ayarotsky/diesel-guard/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}