GitHub Actions · SARIF 2.1.0 · VS Code · Vitest / Jest

위험한 마이그레이션과 느린 쿼리를 Pull Request 단계에서 차단하세요.

운영 스냅샷의 실제 테이블 크기와 쓰기 부하를 기준으로 오프라인 검증하여 GitHub PR SARIF 주석과 VS Code 빠른 수정을 제공합니다.

@culpritsql/ciSARIF 2.1.0

Offline Pull Request Migration Gates

Checks Flyway, Prisma, Rails, Django, Alembic, and raw SQL migrations against a saved catalog snapshot—catching missing CONCURRENTLY, volatile defaults, wide lock queues, and unindexed foreign keys without connecting CI runners to production.

VS CodeQuick Fixes

Culprit SQL for VS Code

Inline squiggles on unsafe DDL and slow SQL patterns as you type, one-click CONCURRENTLY / lock-timeout rewrites, and integrated execution plan previews.

@culpritsql/testVitest · Jest

Deterministic Query Regression Assertions

Wrap integration endpoints in expectQueries() to fail CI automatically when an ORM upgrade introduces N+1 query loops or sequential table scans.

@culpritsql/devtoolsLocal HUD

In-App SQL Telemetry HUD

Drop-in development overlay showing per-request query counts, slow statements, duplicate calls, and 1-click plan inspection during local feature work.

GitHub Actions + Vitest Guardrails
# 1. Lint SQL migrations in GitHub Actions with SARIF annotations:
$ npx @culpritsql/ci lint --snapshot .culprit/prod.json --files "migrations/**/*.sql" --sarif culprit.sarif

# 2. Assert query count and index usage in integration tests:
$ npm install -D @culpritsql/test