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:
@@ -1,14 +1,25 @@
|
||||
#ifndef SONGREPOSITORY_H_
|
||||
#define SONGREPOSITORY_H_
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <mysql/mysql.h>
|
||||
|
||||
#include "database/base_repository.h"
|
||||
#include "models/models.h"
|
||||
#include "types/songFilter.h"
|
||||
|
||||
class songRespository
|
||||
class songRepository : public base_repository
|
||||
{
|
||||
public:
|
||||
songRepository(const std::string&);
|
||||
|
||||
Song retrieveRecord(Song&, songFilter);
|
||||
|
||||
void saveRecord(const Song&);
|
||||
private:
|
||||
std::vector<Song> parseRecords(MYSQL_RES*);
|
||||
Song parseRecord(MYSQL_RES*);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user