detect_table_locks
Map lock levels (AccessExclusiveLock, ShareLock) acquired per SQL statement in a migration to identify table locks before execution.
Instructions
Map out lock levels (AccessExclusiveLock, ShareLock) acquired per statement in migration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Raw SQL migration text to inspect. | |
| dialect | No | Target SQL dialect (default: 'postgres'). |