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

Method getPathId

common/sqlitedb.cpp:422–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420
421
422int SQLiteDB::getPathId(const QString &path)
423{
424 QSqlQuery query(QString("SELECT object_id from sources WHERE path = %1").arg(path));
425 if(query.next()) {
426 return query.value(0).toInt();
427 } else {
428 qDebug() << query.lastError();
429 return -1;
430 }
431}
432
433QString SQLiteDB::getPathFromId(int ohfi)
434{

Callers

nothing calls this directly

Calls 1

valueMethod · 0.80

Tested by

no test coverage detected