Squawk is a static analysis tool for PostgreSQL migration files. It catches operations that cause table locks, downtime, or data loss — before you run them.
Installation
# Via pip (recommended for CI)pip install squawk-cli# Via brewbrew install squawk# Via npm (check platform support)npm install -D squawk-cli
Usage
# Lint a single migrationsquawk path/to/migration.sql# Lint all migrationssquawk migrations/*.sql# With config filesquawk --config .squawk.toml migrations/*.sql