Skip to main content

resolve_db_path

Function resolve_db_path 

Source
pub fn resolve_db_path(db_path: DbPath, default_filename: &str) -> DbPath
Expand description

Resolve the database path, creating directories as needed.

default_filename is appended when the caller passes a DbPath::File that points at a directory (no extension), so each subsystem can keep its own default (e.g. "cdc.db" or "primitive.db").