#ifndef SONGREPOSITORY_H_ #define SONGREPOSITORY_H_ #include #include #include #include "database/base_repository.h" #include "models/models.h" #include "types/songFilter.h" namespace Database { class songRepository : public base_repository { public: songRepository(const std::string&); songRepository(const Model::BinaryPath&); std::vector retrieveRecords(); bool doesSongExist(const Model::Song&, Type::songFilter); Model::Song retrieveRecord(Model::Song&, Type::songFilter); void deleteRecord(const Model::Song&); void saveRecord(const Model::Song&); private: std::vector parseRecords(MYSQL_RES*); // TODO: to be removed std::vector parseRecords(MYSQL_STMT*); Model::Song parseRecord(MYSQL_RES*); // TODO: to be removed Model::Song parseRecord(MYSQL_STMT*); }; } #endif