Preview migration SQL (structured)
liquibase_update_sqlRender the SQL Liquibase would run for pending changesets as structured per-changeset summaries with SQL Server batch linting; preview only, no changes applied.
Instructions
Render the SQL Liquibase would run for pending changesets (updateSQL) as structured per-changeset summaries with a SQL-Server batch lint. Does NOT apply changes. SQL bodies are omitted unless includeRaw or changesetId is set. liquibase is on PATH — no mise/wrapper needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Directory to run liquibase in (where the defaults file / changelog live). | |
| labels | No | Label expression to filter changesets (--labels). | |
| contexts | No | Context expression to filter changesets (--contexts). | |
| maxItems | No | Item cap; overrides detailLevel | |
| batchLint | No | Lint each changeset for the SQL-Server 'routine DDL must lead its GO-batch' rule (default true). | |
| extraArgs | No | Additional raw arguments appended to the liquibase invocation. | |
| includeRaw | No | Include raw/verbose fields | |
| changesetId | No | Return only this changeset's full rendered SQL (matches the changeset id). | |
| detailLevel | No | Item preset: summary 20, normal 100, full (default; also skips the response budget) | |
| defaultsFile | No | Path to the Liquibase defaults file (--defaults-file), e.g. db-dev.properties. Usually carries the JDBC URL, credentials, and changelog path. | |
| changelogFile | No | Changelog path (--changelog-file); usually set in the defaults file instead. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | No | ||
| retained | No | ||
| truncated | No | ||
| changesets | Yes | ||
| changesetCount | Yes |