Skip to main content

render_file

Function render_file 

Source
pub fn render_file(onto: &str, body: &str, squashed: &[String]) -> String
Expand description

Build the full file content for a migration given onto and body.

body must include the leading blank line (the separator between header and SQL), so that parse recovers the same bytes that compute_id hashed.