Some clean up for insert song records into the database
This commit is contained in:
1 parent
d54715ac25
commit
2145adb039
6 files changed
+143
-71
No files matched your search
@@ -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*);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user