Skip to main content

db_path

Function db_path 

Source
pub fn db_path(override_path: Option<&Path>) -> PathBuf
Expand description

Resolve the path to the index database.

When override_path is Some, it is used verbatim — this is what the CLI’s --db flag wires into. Otherwise the default ~/.logdive/index.db is returned per the “Default index location” decision in the project doc.

Purely functional: does not touch the filesystem.