Skip to main content

try_open_projection

Function try_open_projection 

Source
pub fn try_open_projection(path: &Path) -> Result<Option<Connection>>
Expand description

Attempt to open the projection database with graceful recovery.

If the database file is missing or corrupt, returns Ok(None) instead of an error. The caller can then trigger a full rebuild.

ยงErrors

Returns an error only for unexpected I/O failures (not missing/corrupt DB).