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

Method insert

Source/Basic/Database.cpp:145–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145bool DB::insert(String tableName, const std::deque<std::vector<Own<Value>>>& rows) {
146 bool success = false;
147 _thread->runInMainSync([&]() {
148 success = transactionUnsafe(_database.get(), [&](SQLite::Database* db) {
149 insertUnsafe(db, tableName, rows);
150 });
151 });
152 return success;
153}
154
155bool DB::transaction(const std::function<void(SQLite::Database*)>& sqls) {
156 bool success = false;

Callers

nothing calls this directly

Calls 2

runInMainSyncMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected