Skip to main content

json_find_migration_by_id

Function json_find_migration_by_id 

Source
pub fn json_find_migration_by_id<'a>(
    root: &'a Value,
    migration_id: &str,
) -> Option<&'a Value>
Expand description

Finds a migration record by its stable migration id.

§Parameters

§Returns

Returns Some when crate::runtime::json_commands::json_find_migration_by_id can produce a value and None otherwise.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::json_find_migration_by_id(std::path::Path::new("."), "001_init");