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

Method exec

src/platform/DBsqlite3.cpp:43–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void sqlite::Dbi::exec(const char *statement, const char *err_msg) {
44 auto rc = sqlite3_exec(handle, statement, nullptr, nullptr, nullptr);
45 if (rc != SQLITE_OK)
46 throw Error((err_msg ? err_msg : "") + std::string(" sqlite error code=") + common::to_string(rc) +
47 " for db path=" + full_path);
48}
49void sqlite::Dbi::commit_txn() {
50 exec("COMMIT TRANSACTION", "saving database data failed. Disk unplugged or out of disk space?");
51}

Callers 3

DBsqliteKVMethod · 0.80
WalletHDsqliteMethod · 0.80
set_passwordMethod · 0.80

Calls 2

ErrorClass · 0.70
to_stringFunction · 0.50

Tested by

no test coverage detected