MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / transaction

Method transaction

Source/Basic/Database.cpp:155–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155bool DB::transaction(const std::function<void(SQLite::Database*)>& sqls) {
156 bool success = false;
157 _thread->runInMainSync([&]() {
158 success = transactionUnsafe(_database.get(), sqls);
159 });
160 return success;
161}
162
163bool DB::transactionUnsafe(SQLite::Database* db, const std::function<void(SQLite::Database*)>& sqls) {
164 try {

Callers

nothing calls this directly

Calls 2

runInMainSyncMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected