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

Method is_sqlite

src/Core/WalletHDsqlite.cpp:37–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35using namespace platform;
36
37bool WalletHDsqlite::is_sqlite(const std::string &full_path) {
38 bool created = false;
39 sqlite::Dbi db_dbi;
40 try {
41 db_dbi.open_check_create(platform::O_READ_EXISTING, full_path, &created);
42 return true;
43 } catch (const std::exception &) {
44 }
45 return false;
46}
47
48WalletHDsqlite::WalletHDsqlite(const Currency &currency, logging::ILogger &log, const std::string &path,
49 const std::string &password, bool readonly)

Callers

nothing calls this directly

Calls 1

open_check_createMethod · 0.80

Tested by

no test coverage detected