MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / Clear

Method Clear

Src/Database/DatabaseFilter.cpp:80–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80int CDatabaseFilter::Clear()
81{
82 QSqlQuery query(GetDatabase());
83 query.prepare("DELETE FROM " + m_szTableName);
84 bool bRet = query.exec();
85 if (!bRet) {
86 qCritical(log) << "Failed to clear:"
87 << query.lastError().text()
88 << "Sql:" << query.executedQuery();
89 return -1;
90 }
91 return 0;
92}
93
94bool CDatabaseFilter::isEmpty()
95{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected