diesel-guard
github.com · Package · Active
Linter that flags Postgres migrations likely to lock tables in Diesel and SQLx
- Data & databases
- Package
- Rust
- Day-7 check
- Day-30 check
- Stars
- 122
- Forks
- 12
- Open issues
- 2
- Last commit
- Releases
- 14
- Found
- 12 months ago
GitHub figures as of . They are context, not a ranking.
diesel-guard is a linter for Postgres migrations written for Diesel and SQLx. It uses PostgreSQL's own parser through libpg_query to find schema changes that lock tables or cause downtime, and it suggests safer alternatives. It suits teams that run database migrations against live Postgres systems.
Repository description on GitHub: “Linter for dangerous Postgres migration patterns in Diesel and SQLx. Prevents downtime caused by unsafe schema changes.”
What it does
- Flags operations that lock tables
- Suggests safer alternatives for each blocking change
- Safety-assured blocks for verified operations
- Custom checks supported
Good for
- Check a migration before it reaches production
- Run a lint over migration files in a build pipeline
Suits: Teams running Diesel or SQLx migrations on Postgres.
Worth knowing: It only checks Postgres migrations.
What you can try
Install the diesel-guard crate from crates.io with Cargo.
Install
cargo install diesel-guardbrew install ayarotsky/tap/diesel-guardConfirmed against the package registry. Read the project’s own instructions before running anything.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw diesel-guard on , when it was first published on crates.io. The oldest published release on GitHub is v0.1.0, dated . Its first tagged release landed the same day it was found. 14 releases have been published in total; the latest is v0.12.0 ().
Day-7 and day-30 updates
Day 7 3 releases shipped
Checked , later than day 7 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: ayarotsky/diesel-guard
- Found: it was first published on crates.io. crates.io
- Release v0.1.0
- Release v0.7.0
- Release v0.8.0
- Release v0.9.0
- Release v0.10.0
- Release v0.11.0
- Release v0.12.0
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Showing the first and the 6 latest of 14 releases. All releases on GitHub
Quick answers
- When was diesel-guard released?
- Its first tagged release on GitHub is dated 6 Dec 2025. Kip found it on crates.io on 6 Dec 2025.
- Is diesel-guard open source?
- Its source is public on GitHub at ayarotsky/diesel-guard under the MIT licence.
- What does diesel-guard run on?
- Command line.
- Is diesel-guard free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is diesel-guard still maintained?
- Yes. It had a commit or release in the last 90 days as of the latest check.
Provenance
| Source | Record | Last checked |
|---|---|---|
| crates.io | listing official API record | |
| GitHub repository | ayarotsky/diesel-guard REST API record | |
| GitHub Releases | release list REST API record |
Stable ID crates-diesel-guard. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.