Searched refs:db_path (Results 1 – 2 of 2) sorted by relevance
57 let mut db_path = PathBuf::from(db_dir); in new() localVariable58 db_path.push(DB_DIR); in new()59 if !db_path.exists() { in new()60 std::fs::create_dir(&db_path).context("failed to create {db_path:?}")?; in new()63 db_path.push(DB_FILENAME); in new()64 Self::new_at_path(db_path, RetryOnFailure(true)) in new()67 fn new_at_path(db_path: PathBuf, retry: RetryOnFailure) -> Result<(Self, bool)> { in new_at_path()68 let (flags, created) = if db_path.exists() { in new_at_path()87 conn: Connection::open_with_flags(&db_path, flags) in new_at_path()102 let _ = std::fs::remove_file(&db_path); in new_at_path()[all …]
90 bool ReadDatabase(const std::string& db_path, ExtensionDatabase& db) { in ReadDatabase() argument92 if (!android::base::ReadFileToString(db_path, &contents, true)) { in ReadDatabase()93 PLOG(ERROR) << "failed to read " << db_path << ": "; in ReadDatabase()97 LOG(ERROR) << "failed to parse " << db_path; in ReadDatabase()