Skip to main content

read_current_version

Function read_current_version 

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

Reads the CURRENT file in the database directory path.

Returns Ok(None) if the file doesn’t exist, which for a writable database means “not initialized yet”.