Skip to main content
Version: Next

stripStatementNewlines

Callable

  • stripStatementNewlines(body): string

  • Flattens ;\n boundaries and drops blank lines so the schema-generator's statement splitter doesn't break the routine or trigger DDL apart — it treats both as statement/group separators. Blank lines go first, otherwise a ; followed by one would keep its newline. Like normalizeViewDefinition, this is not string-literal aware, so a blank line inside a multi-line literal is dropped too. Other whitespace is preserved.


    Parameters

    • body: string

    Returns string