Skip to main content

normalize_dbms_metadata_ddl

Function normalize_dbms_metadata_ddl 

Source
pub fn normalize_dbms_metadata_ddl(text: &str) -> String
Expand description

Normalize DDL text emitted by DBMS_METADATA.GET_DDL so equality checks across runs ignore cosmetic differences:

  • Trim leading + trailing whitespace.
  • Collapse runs of whitespace inside the body to a single space (newlines are preserved as-is so the result remains readable).
  • Strip the trailing / SQL*Plus terminator if present.