소스 검색

Create the catalog's parent dir before opening

default_compile_flags
vector-of-bool 5 년 전
부모
커밋
c74b73cfcb
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. +3
    -0
      src/dds/catalog/catalog.cpp

+ 3
- 0
src/dds/catalog/catalog.cpp 파일 보기

} // namespace } // namespace


catalog catalog::open(const std::string& db_path) { catalog catalog::open(const std::string& db_path) {
if (db_path != ":memory:") {
fs::create_directories(fs::weakly_canonical(db_path).parent_path());
}
auto db = sqlite3::database::open(db_path); auto db = sqlite3::database::open(db_path);
try { try {
ensure_migrated(db); ensure_migrated(db);

Loading…
취소
저장