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:
kdeng00 committed 2019-09-01 18:46:02 -04:00
1 parent ab3000c2a0
commit fafb39326b
17 files changed
+320 -59

No files matched your search

+11
View File
@@ -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*);
};
}