Left off at adding album record to the database and retrieving the album record to assign the album id to the song record's album id foreign key
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
#ifndef ALBUMREPOSITORY_H_
|
||||
#define ALBUMREPOSITORY_H_
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "database/base_repository.h"
|
||||
#include "models/models.h"
|
||||
#include "types/albumFilter.h"
|
||||
|
||||
namespace Database
|
||||
{
|
||||
@@ -10,7 +13,15 @@ namespace Database
|
||||
{
|
||||
public:
|
||||
albumRepository(const Model::BinaryPath&);
|
||||
|
||||
std::vector<Model::Album> retrieveRecords();
|
||||
|
||||
Model::Album retrieveRecord(Model::Album&, Type::albumFilter);
|
||||
|
||||
void saveAlbum(const Model::Album&);
|
||||
private:
|
||||
std::vector<Model::Album> parseRecords(MYSQL_RES*);
|
||||
Model::Album parseRecord(MYSQL_RES*);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user