MCPcopy Create free account
hub / github.com/codestation/qcma / getPathFromId

Method getPathFromId

common/sqlitedb.cpp:433–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431}
432
433QString SQLiteDB::getPathFromId(int ohfi)
434{
435 QSqlQuery query(QString("SELECT path FROM sources WHERE object_id = %1").arg(ohfi));
436 if(query.next()) {
437 return query.value(0).toString();
438 } else {
439 qDebug() << query.lastError();
440 return QString();
441 }
442}
443
444bool SQLiteDB::updateSize(int ohfi, quint64 size)
445{

Callers

nothing calls this directly

Calls 1

valueMethod · 0.80

Tested by

no test coverage detected