Able to save and retrieve records (Artist, Album, Genre, etc.)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
#include "database/base_repository.h"
|
||||
#include "models/models.h"
|
||||
#include "types/coverFilter.h"
|
||||
#include "types/artistFilter.h"
|
||||
|
||||
namespace Database
|
||||
{
|
||||
@@ -11,7 +11,12 @@ namespace Database
|
||||
{
|
||||
public:
|
||||
artistRepository(const Model::BinaryPath&);
|
||||
|
||||
Model::Artist retrieveRecord(Model::Artist&, Type::artistFilter);
|
||||
|
||||
void saveRecord(const Model::Artist&);
|
||||
private:
|
||||
Model::Artist parseRecord(MYSQL_RES*);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "database/base_repository.h"
|
||||
#include "models/models.h"
|
||||
#include "types/genreFilter.h"
|
||||
|
||||
namespace Database
|
||||
{
|
||||
@@ -10,7 +11,12 @@ namespace Database
|
||||
{
|
||||
public:
|
||||
genreRepository(const Model::BinaryPath&);
|
||||
|
||||
Model::Genre retrieveRecord(Model::Genre&, Type::genreFilter);
|
||||
|
||||
void saveRecord(const Model::Genre&);
|
||||
private:
|
||||
Model::Genre parseRecord(MYSQL_RES*);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "database/base_repository.h"
|
||||
#include "models/models.h"
|
||||
#include "types/yearFilter.h"
|
||||
|
||||
namespace Database
|
||||
{
|
||||
@@ -10,7 +11,12 @@ namespace Database
|
||||
{
|
||||
public:
|
||||
yearRepository(const Model::BinaryPath&);
|
||||
|
||||
Model::Year retrieveRecord(Model::Year&, Type::yearFilter);
|
||||
|
||||
void saveRecord(const Model::Year&);
|
||||
private:
|
||||
Model::Year parseRecord(MYSQL_RES*);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user