MCPcopy Create free account
hub / github.com/bcndev/bytecoin / delete_db

Method delete_db

src/platform/DBsqlite3.cpp:277–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277void DBsqliteKV::delete_db(const std::string &path) {
278 auto ep = platform::expand_path(path);
279 std::remove((ep + ".sqlite").c_str());
280 std::remove((ep + ".sqlite-journal").c_str());
281}
282void DBsqliteKV::backup_db(const std::string &path, const std::string &dst_path) {
283 throw platform::sqlite::Error("SQlite backed does not support hot backup - stop daemons, then copy database");
284 /* bool src_created = false;

Callers

nothing calls this directly

Calls 1

expand_pathFunction · 0.85

Tested by

no test coverage detected