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

Method query

Source/Basic/Database.cpp:211–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211std::optional<DB::Rows> DB::query(String sql, const std::vector<Own<Value>>& args, bool withColumns) {
212 std::optional<DB::Rows> result;
213 _thread->runInMainSync([&]() {
214 try {
215 result = DB::queryUnsafe(_database.get(), sql, args, withColumns);
216 } catch (std::exception& e) {
217 Warn("failed to execute DB query: {}", e.what());
218 }
219 });
220 return result;
221}
222
223DB::Rows DB::queryUnsafe(SQLite::Database* db, String sql, const std::vector<Own<Value>>& args, bool withColumns) {
224 Rows result;

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