able to stream now, need to do some code clean up and refactoring. Also need to have a view for controls

This commit is contained in:
kdeng00
2019-10-12 13:16:05 -04:00
parent f9304a52e2
commit cc97123908
21 changed files with 577 additions and 154 deletions
+13
View File
@@ -8,18 +8,31 @@
#include <string>
#include <exception>
#include <SQLiteCpp/Database.h>
namespace repository { namespace local {
class BaseRepository {
public:
bool databaseExist(const std::string&);
bool doesTableExist(const std::string&);
bool isTableEmpty(const std::string&);
void initializedDatabase(const std::string&);
void deleteRecord(const std::string&);
protected:
enum class ConnType;
std::string pathOfDatabase(const std::string&);
SQLite::Database getDbConn(const std::string&, ConnType);
const std::string m_databaseName = "mear.db3";
std::string m_tableName;
enum class ConnType {
ReadOnly = 0,
ReadWrite,
Create
};
private:
};
} }