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

Method exec

Source/Basic/Database.cpp:111–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111int DB::exec(String sql) {
112 int rowChanged = -1;
113 _thread->runInMainSync([&]() {
114 try {
115 rowChanged = execUnsafe(_database.get(), sql);
116 } catch (std::exception& e) {
117 Warn("failed to execute DB SQL: {}", e.what());
118 }
119 });
120 return rowChanged;
121}
122
123int DB::exec(String sql, const std::vector<Own<Value>>& args) {
124 int rowChanged = -1;

Callers

nothing calls this directly

Calls 4

runInMainSyncMethod · 0.80
getMethod · 0.65
WarnFunction · 0.50
whatMethod · 0.45

Tested by

no test coverage detected