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:
@@ -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:
|
||||
};
|
||||
} }
|
||||
|
||||
Reference in New Issue
Block a user