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

Method renameObject

common/sqlitedb.cpp:1098–1109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1096}
1097
1098bool SQLiteDB::renameObject(int ohfi, const QString &name)
1099{
1100 QSqlQuery query("UPDATE object_node SET title = :title WHERE object_id = :object_id");
1101 query.bindValue(0, name);
1102 query.bindValue(1, ohfi);
1103
1104 if(!query.exec()) {
1105 return false;
1106 }
1107
1108 return updateObjectPath(ohfi, name);
1109}
1110
1111void SQLiteDB::setObjectSize(int ohfi, qint64 size)
1112{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected