Able to retrieve single and multiple records (Album, Artist, Genre, Year)
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#ifndef GENREREPOSITORY_H_
|
||||
#define GENREREPOSITORY_H_
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "database/BaseRepository.h"
|
||||
#include "model/Models.h"
|
||||
#include "type/GenreFilter.h"
|
||||
@@ -12,12 +14,16 @@ namespace database
|
||||
public:
|
||||
GenreRepository(const model::BinaryPath&);
|
||||
|
||||
std::vector<model::Genre> retrieveRecords();
|
||||
|
||||
model::Genre retrieveRecord(model::Genre&, type::GenreFilter);
|
||||
|
||||
bool doesGenreExist(const model::Genre&, type::GenreFilter);
|
||||
|
||||
void saveRecord(const model::Genre&);
|
||||
private:
|
||||
std::vector<model::Genre> parseRecords(MYSQL_STMT*);
|
||||
|
||||
// TODO: After parseRecord(MYSQL_STMT*) is implemented
|
||||
// remove parseRecord(MYSQL_RES*)
|
||||
model::Genre parseRecord(MYSQL_RES*);
|
||||
|
||||
Reference in New Issue
Block a user