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

Method getRelativePath

common/sqlitedb.cpp:1029–1040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1027}
1028
1029QString SQLiteDB::getRelativePath(int ohfi)
1030{
1031 QSqlQuery query;
1032 query.prepare("SELECT path FROM sources WHERE object_id = :object_id");
1033 query.bindValue(0, ohfi);
1034 if(!query.exec() || !query.next()) {
1035 qDebug() << query.lastError();
1036 return NULL;
1037 } else {
1038 return query.value(0).toString();
1039 }
1040}
1041
1042bool SQLiteDB::updateObjectPath(int ohfi, const QString &name)
1043{

Callers

nothing calls this directly

Calls 1

valueMethod · 0.80

Tested by

no test coverage detected