pub fn lock_data_dir(data_dir: &Path) -> Result<File, AppError>Expand description
Takes the data directory’s lock for as long as the returned file is open: one standalone per data directory (and its SQLite database).
§Errors
AppError::BadArgument if another process holds it, or the file can’t be opened.