Skip to main content

Module split

Module split 

Source
Expand description

Cut recovered SQL into pieces and join pieces back together, keeping the physical source-line map of every piece exact.

Structs§

Marker
Where a cut-out marker was read from.

Functions§

compose
Concatenates parts in order with the shared append rules (placeholder renumbering and physical-origin tracking). Empty parts contribute nothing.
coordinate
SQL line and column of byte offset once generated markers are published.
origin_at
Physical line (and module, when foreign) that the SQL coordinate reads from.
plain
Plain SQL text whose first character reads from marker.
split
Pieces between markers, each with a self-contained position map, plus the physical origin of every marker. markers must be sorted and disjoint.
with_origin_entry
A fragment must open with an explicit entry, otherwise a module change between it and its prefix would be invisible to the position map.