| 109 | } |
| 110 | |
| 111 | int 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 | |
| 123 | int DB::exec(String sql, const std::vector<Own<Value>>& args) { |
| 124 | int rowChanged = -1; |
nothing calls this directly
no test coverage detected