pub fn state_from_dir<P: AsRef<Path>>(path: P) -> Result<State, Box<dyn Error>>
Returns the db state from a directory.