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

Method setObjectSize

common/sqlitedb.cpp:1111–1120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1109}
1110
1111void SQLiteDB::setObjectSize(int ohfi, qint64 size)
1112{
1113 QSqlQuery query;
1114 query.prepare("UPDATE sources SET size = :size WHERE object_id = :object_id");
1115 query.bindValue(0, size);
1116 query.bindValue(1, ohfi);
1117 if(!query.exec()) {
1118 qDebug() << query.lastError();
1119 }
1120}
1121
1122qint64 SQLiteDB::getChildenTotalSize(int ohfi)
1123{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected