| 660 | } |
| 661 | |
| 662 | void DBHelper::update(qulonglong libraryId, ComicInfo &comicInfo) |
| 663 | { |
| 664 | QString libraryPath = DBHelper::getLibraries().getPath(libraryId); |
| 665 | QString connectionName = ""; |
| 666 | { |
| 667 | QSqlDatabase db = DataBaseManagement::loadDatabase(LibraryPaths::libraryDataPath(libraryPath)); |
| 668 | DBHelper::update(&comicInfo, db); |
| 669 | connectionName = db.connectionName(); |
| 670 | } |
| 671 | QSqlDatabase::removeDatabase(connectionName); |
| 672 | } |
| 673 | |
| 674 | void DBHelper::update(ComicInfo *comicInfo, QSqlDatabase &db) |
| 675 | { |
no test coverage detected