Files
icarus/include/database/songRepository.h
T

30 lines
533 B
C++

#ifndef SONGREPOSITORY_H_
#define SONGREPOSITORY_H_
#include <memory>
#include <vector>
#include <mysql/mysql.h>
#include "database/base_repository.h"
#include "models/models.h"
#include "types/songFilter.h"
class songRepository : public base_repository
{
public:
songRepository(const std::string&);
std::vector<Song> retrieveRecords();
Song retrieveRecord(Song&, songFilter);
void saveRecord(const Song&);
private:
std::vector<Song> parseRecords(MYSQL_RES*);
Song parseRecord(MYSQL_RES*);
};
#endif