MCPcopy Create free account
hub / github.com/YACReader/yacreader / getComicInfo

Method getComicInfo

YACReaderLibrary/db_helper.cpp:140–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138 return f.parentId;
139}
140ComicDB DBHelper::getComicInfo(qulonglong libraryId, qulonglong id)
141{
142 QString libraryPath = DBHelper::getLibraries().getPath(libraryId);
143 QString connectionName = "";
144 ComicDB comic;
145 {
146 QSqlDatabase db = DataBaseManagement::loadDatabase(LibraryPaths::libraryDataPath(libraryPath));
147
148 bool found;
149 comic = DBHelper::loadComic(id, db, found);
150 connectionName = db.connectionName();
151 }
152 QSqlDatabase::removeDatabase(connectionName);
153 return comic;
154}
155
156QList<ComicDB> DBHelper::getSiblings(qulonglong libraryId, qulonglong parentId)
157{

Callers

nothing calls this directly

Calls 1

getPathMethod · 0.80

Tested by

no test coverage detected