MCPcopy Create free account
hub / github.com/LiteLDev/LeviLamina / KeyValueDB

Method KeyValueDB

src/ll/api/data/KeyValueDB.cpp:50–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48};
49
50KeyValueDB::KeyValueDB(std::filesystem::path const& path, bool createIfMiss, bool fixIfError, int bloomFilterBit) {
51 if (createIfMiss) {
52 std::error_code ec;
53 std::filesystem::create_directories(path, ec);
54 }
55 impl = std::make_unique<KeyValueDBImpl>(
56 string_utils::wstr2str(path.wstring()),
57 createIfMiss,
58 fixIfError,
59 bloomFilterBit
60 );
61}
62
63KeyValueDB::KeyValueDB(std::filesystem::path const& path) : KeyValueDB(path, true, true, 0) {}
64

Callers

nothing calls this directly

Calls 1

wstr2strFunction · 0.85

Tested by

no test coverage detected