Skip to main content

next_id

Function next_id 

Source
pub fn next_id(existing: &[Migration], slug: &str) -> String
Expand description

Next id: max existing sequence + 1, zero-padded to at least 4 digits, plus slug.