Cover art record saved in the database. Next is to save the song record to the database and then try to download the song afterwards

This commit is contained in:
kdeng00
2019-08-24 18:41:01 -04:00
parent 9281293fad
commit 1db3eb2f8c
11 changed files with 205 additions and 9 deletions
+35
View File
@@ -0,0 +1,35 @@
#include "database/songRepository.h"
#include <iostream>
#include <memory>
#include <sstream>
#include <cstring>
songRepository::songRepository(const std::string& path) : base_repository(path)
{ }
Song songRepository::retrieveRecord(Song& song, songFilter)
{
return song;
}
void songRepository::saveRecord(const Song& song)
{
// TODO: pick up here. Save the song record to the database
}
std::vector<Song> songRepository::parseRecords(MYSQL_RES* results)
{
std::vector<Song> songs;
return songs;
}
Song songRepository::parseRecord(MYSQL_RES* results)
{
Song song;
return song;
}