MCPcopy Create free account
hub / github.com/Mixaill/FakePDB / Save

Method Save

src_cpp/src/data/db.cpp:73–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 }
72
73 void DB::Save(std::filesystem::path &filepath) {
74 nlohmann::json json = _root;
75 std::ofstream file(filepath);
76 file << std::setw(4) << json;
77 }
78}

Callers 1

RunMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected