Working on interfacing with the database. Could do queryies via string/cstring but I'm going to try prepared statements

This commit is contained in:
kdeng00
2019-08-23 23:16:42 -04:00
parent 764185da7d
commit 9281293fad
9 changed files with 70 additions and 36 deletions
+7
View File
@@ -1,7 +1,12 @@
#include "managers/coverArtManager.h"
#include "database/coverArtRepository.h"
#include "utilities/metadata_retriever.h"
coverArtManager::coverArtManager(const std::string& configPath) : path(configPath)
{ }
Cover coverArtManager::saveCover(const Song& song, std::string& rootPath, const std::string& stockCoverPath)
{
metadata_retriever meta;
@@ -10,5 +15,7 @@ Cover coverArtManager::saveCover(const Song& song, std::string& rootPath, const
cov = meta.update_cover_art(song, cov, stockCoverPath);
cov.songTitle = song.title;
coverArtRepository covRepo(path);
return cov;
}