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

Method insertObjectEntry

common/sqlitedb.cpp:364–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364int SQLiteDB::insertObjectEntry(const QString &path, const QString &name, int parent_ohfi)
365{
366 int ohfi;
367 int type;
368
369 if((type = getObjectType(parent_ohfi)) == 0) {
370 return 0;
371 }
372 db.transaction();
373 if((ohfi = insertObjectEntryInternal(path, name, parent_ohfi, type)) == 0) {
374 db.rollback();
375 }
376 db.commit();
377
378 return ohfi;
379}
380
381int SQLiteDB::insertObjectEntryInternal(const QString &path, const QString &name, int parent_ohfi, int root_ohfi)
382{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected