Skip to main content

hydrate_starter_if_empty

Function hydrate_starter_if_empty 

Source
pub fn hydrate_starter_if_empty() -> Result<()>
Expand description

If no usable DB exists yet (fresh install, before cmdh update), seed it from the embedded starter DB so the very first cmdh search returns results offline. Never overwrites a populated DB (e.g. after cmdh update). Call before open_db.