rename_in_library
Rename a database table or column across all saved queries, updating references in SQL while preserving strings and comments. Preview changes with dry run, then apply when ready.
Instructions
Follow a database rename through every saved query, token-aware (strings and comments untouched). kind='table': old='dbo.Vendor', new='dbo.Supplier' kind='column': table='dbo.Vendor', old='Name', new='VendorName' (alias-qualified references, and bare ones in single-table queries; ambiguous bare references are reported, not changed). dry_run defaults to TRUE: review the diff, then call again with dry_run=false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new | Yes | ||
| old | Yes | ||
| kind | Yes | ||
| table | No | ||
| dry_run | No |