Linter for dangerous Postgres migration patterns in Diesel and SQLx that prevents downtime from unsafe schema changes.
Diesel Guard is a linter tool that analyzes PostgreSQL database migrations written for Diesel and SQLx frameworks to detect dangerous patterns that could cause production downtime. It identifies operations that lock tables, require full table rewrites, or otherwise disrupt database availability, providing safer alternatives before migrations reach production.
Rust developers using Diesel or SQLx for database operations, particularly teams managing PostgreSQL databases in production environments where migration safety is critical.
Developers choose Diesel Guard because it catches potentially catastrophic database changes early in the development cycle using PostgreSQL's own parser for accurate analysis, without requiring a running database instance. Its version-aware checks and custom scripting capabilities make it adaptable to specific project needs.
Linter for dangerous Postgres migration patterns in Diesel and SQLx. Prevents downtime caused by unsafe schema changes.
Uses PostgreSQL's own libpg_query parser, ensuring that detected issues match exactly what PostgreSQL will execute, reducing false positives as highlighted in the README.
Works on SQL files without a running database instance, making it easy to embed in CI/CD pipelines for automated checks, as shown in the GitHub Actions example.
Configurable for specific PostgreSQL versions to suppress irrelevant warnings, such as constant defaults being safe on PG 11+, preventing false alarms.
Supports Rhai scripting for adding project-specific validation rules, allowing teams to tailor checks to unique needs without forking the tool.
Exclusively targets PostgreSQL, so it cannot analyze migrations for other database systems like MySQL or SQLite, restricting its utility in polyglot environments.
Only compatible with Diesel and SQLx frameworks in Rust, making it irrelevant for projects using other ORMs or languages, despite its static analysis approach.
Requires initial setup with `diesel-guard init` and understanding of TOML configuration, which adds complexity compared to drop-in linters with zero configuration.
Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more
A scalable, distributed, collaborative, document-graph database, for the realtime web
Blazing fast, instant realtime GraphQL APIs on all your data with fine grained access control, also trigger webhooks on database events.
Qdrant - High-performance, massive-scale Vector Database and Vector Search Engine for the next generation of AI. Also available in the cloud https://cloud.qdrant.io/
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.