Some clean up for insert song records into the database

This commit is contained in:
kdeng00
2019-08-25 14:54:09 -04:00
parent d54715ac25
commit 2145adb039
6 changed files with 143 additions and 71 deletions
+2 -4
View File
@@ -15,16 +15,14 @@ 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*);
std::unique_ptr<MYSQL_BIND*> bindParams(const Song&);
//std::unique_ptr<MYSQL_BIND[]> bindParams(const Song&);
//std::shared_ptr<MYSQL_BIND> bindParams(const Song&);
Song parseRecord(MYSQL_RES*);
};