Latest / Data & databases

diesel-guard

github.com · Package · Active

Linter that flags Postgres migrations likely to lock tables in Diesel and SQLx

Visit github.com ↗Share

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-guard
brew install ayarotsky/tap/diesel-guard

Confirmed 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

  • 3 releases in the first 7 days: v0.1.0 (6 Dec 2025), v0.1.1 (6 Dec 2025), v0.2.0 (8 Dec 2025)

Checked , later than day 7 because tracking began after.

Day 30 5 releases shipped

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

Releases per month, last 24 months (14 in total, busiest month 5).
  1. Repository created on GitHub: ayarotsky/diesel-guard
  2. Found: it was first published on crates.io. crates.io
  3. Release v0.1.0
  4. Release v0.7.0
  5. Release v0.8.0
  6. Release v0.9.0
  7. Release v0.10.0
  8. Release v0.11.0
  9. Release v0.12.0
  10. Day-7 check recorded by Kip (details)
  11. 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

SourceRecordLast checked
crates.iolisting
official API record
GitHub repositoryayarotsky/diesel-guard
REST API record
GitHub Releasesrelease 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

More in Data & databases

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.