Able to insert song records into the database. Left TODO for clean up

This commit is contained in:
kdeng00
2019-08-25 01:30:13 -04:00
parent 1db3eb2f8c
commit d54715ac25
3 changed files with 131 additions and 1 deletions
+6
View File
@@ -1,6 +1,7 @@
#ifndef SONGREPOSITORY_H_
#define SONGREPOSITORY_H_
#include <memory>
#include <vector>
#include <mysql/mysql.h>
@@ -19,6 +20,11 @@ public:
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*);
};