What problem does it solve?
This lens prevents data loss, downtime, and integrity regressions by evaluating database migrations, schema changes, queries, and transaction usage for real-world production risks.
Core Features & Use Cases
- Migration Safety Evaluation: Identify rollback hazards, locking implications, zero-downtime compatibility, idempotency issues, and backfill correctness for migrations.
- Schema and Integrity Assessment: Check constraints, indexes, column types, referential integrity, and appropriate defaults relative to access patterns and data scale.
- Query and Transaction Review: Detect NULL-handling issues, N+1 patterns, unbounded result sets, improper transaction scoping, and connection pool concerns.
- Use Case: When a feature introduces several migrations and ORM model changes, run this lens to produce a prioritized migration-risk report that the team can act on before deployment.
Quick Start
Review the repository for database-related changes and produce a migration safety and schema integrity report.