Skip to main content

parse_steps

Function parse_steps 

Source
pub fn parse_steps(body: &str) -> Vec<(bool, String)>
Expand description

Split a migration body on -- pylon:step markers into (transactional, sql) pairs, in order. A step is transactional unless its preceding marker was -- pylon:step non-transactional (that marker applies to the step it introduces, not the one it ends — matching the Python implementation this replaces exactly, including the leading segment before any marker always being transactional).