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
offsetonce 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.markersmust 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.