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

Method getObjectType

common/sqlitedb.cpp:1155–1166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1153}
1154
1155int SQLiteDB::getObjectType(int ohfi)
1156{
1157 QSqlQuery query;
1158 query.prepare("SELECT type FROM object_node WHERE object_id = :object_id");
1159 query.bindValue(0, ohfi);
1160 if(!query.exec() || !query.next()) {
1161 qDebug() << query.lastError();
1162 return 0;
1163 } else {
1164 return query.value(0).toInt();
1165 }
1166}
1167
1168int SQLiteDB::getParentId(int ohfi)
1169{

Callers

nothing calls this directly

Calls 1

valueMethod · 0.80

Tested by

no test coverage detected