mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
SQLite: Use std::filesystem::path
This commit is contained in:
parent
349d2c58e5
commit
4ab8ff5b4c
4 changed files with 7 additions and 7 deletions
|
|
@ -69,10 +69,10 @@ struct AttrDb
|
|||
{
|
||||
auto state(_state->lock());
|
||||
|
||||
Path cacheDir = getCacheDir() + "/eval-cache-v5";
|
||||
auto cacheDir = std::filesystem::path(getCacheDir()) / "eval-cache-v5";
|
||||
createDirs(cacheDir);
|
||||
|
||||
Path dbPath = cacheDir + "/" + fingerprint.to_string(HashFormat::Base16, false) + ".sqlite";
|
||||
auto dbPath = cacheDir / (fingerprint.to_string(HashFormat::Base16, false) + ".sqlite");
|
||||
|
||||
state->db = SQLite(dbPath);
|
||||
state->db.isCache();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue