⭐️ If you like MikroORM, give it a star on GitHub and consider sponsoring its development! ⭐️
This is documentation for an unreleased version. For the latest API, see version 7.1.
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.
Flattens
;\nboundaries 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. LikenormalizeViewDefinition, this is not string-literal aware, so a blank line inside a multi-line literal is dropped too. Other whitespace is preserved.