Skip to main content

render_status

Function render_status 

Source
pub fn render_status(rows: &[(String, bool)]) -> String
Expand description

The showmigrations text for rows of Migrator::show: one [X] id (applied) or [ ] id (pending) line per migration.

Args: rows: (id, applied) pairs in display order.

Returns: The text, one line per row (empty for no rows).