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

Method DeleteUrl

Plugins/WebBrowser/DatabaseUrl.cpp:163–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163bool CDatabaseUrl::DeleteUrl(const QString &url)
164{
165 if (url.isEmpty()) return false;
166
167 QSqlQuery query(GetDatabase());
168 query.prepare("DELETE from " + m_szTableName + " WHERE url = :url");
169 query.bindValue(":url", url);
170 bool bRet = query.exec();
171 if (!bRet) {
172 SetError("Failed to delete " + m_szTableName + ": " + url
173 + "; Error: " + query.lastError().text()
174 + "; Sql: " + query.executedQuery());
175 qCritical(log) << GetError();
176 }
177
178 return bRet;
179}
180
181bool CDatabaseUrl::DeleteUrl(int id)
182{

Callers 1

foreachFunction · 0.80

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected