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

Method childObjectCount

common/sqlitedb.cpp:871–882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

869}
870
871int SQLiteDB::childObjectCount(int parent_ohfi)
872{
873 QSqlQuery query;
874 query.prepare("SELECT count(child_id) FROM adjacent_objects WHERE parent_id = :object_id");
875 query.bindValue(0, parent_ohfi);
876 if(!query.exec() || !query.next()) {
877 qDebug() << query.lastError();
878 return -1;
879 } else {
880 return query.value(0).toInt();
881 }
882}
883
884bool SQLiteDB::deleteEntry(int ohfi, int root_ohfi)
885{

Callers

nothing calls this directly

Calls 1

valueMethod · 0.80

Tested by

no test coverage detected