Skip to content

feat(metadata): normalize and synchronize SQL metadata headers#4

Merged
MayerTim merged 8 commits into
mainfrom
feat/normalize-metadata-headers
Jun 9, 2026
Merged

feat(metadata): normalize and synchronize SQL metadata headers#4
MayerTim merged 8 commits into
mainfrom
feat/normalize-metadata-headers

Conversation

@MayerTim

@MayerTim MayerTim commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Summary

Adds broader metadata-header support for Watcom SQL files.

This branch improves how SQLovely detects, normalizes, updates, and documents metadata headers across procedures, functions, triggers, and multi-object SQL scripts.

Changes

  • Normalize loose legacy metadata headers into the current SQLovely metadata format
  • Support older metadata labels such as geändert von, geupdated von, and geupdated am
  • Add the new Updated By metadata field below Author
  • Normalize metadata dates to YYYY-MM-DD
  • Support multiline Description values
  • Automatically wrap long descriptions to the configured max line length
  • Preserve manual line breaks inside descriptions during formatting
  • Synchronize Version with the latest history entry
  • Add missing history entries when the metadata version is bumped
  • Correct invalid version jumps to the next valid increment
  • Process all supported SQL objects in multi-object scripts instead of only the first object
  • Improve metadata syntax highlighting and TextMate scopes
  • Add regression coverage for legacy headers, version/history synchronization, multiline descriptions, date normalization, and multi-object scripts
  • Update README, changelog, implementation docs, development notes, contribution docs, and packaging checklist

Testing

  • Ran the full test suite successfully
  • Current result: All SQLovely tests passed (77 assertions)

@MayerTim MayerTim merged commit e36418b into main Jun 9, 2026
1 check passed
@MayerTim MayerTim deleted the feat/normalize-metadata-headers branch June 9, 2026 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant