-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathstorage_module_db.hpp
More file actions
31 lines (28 loc) · 1.07 KB
/
storage_module_db.hpp
File metadata and controls
31 lines (28 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef STORAGE_MODULE_DB_HPP_
#define STORAGE_MODULE_DB_HPP_
#include "countly/countly_configuration.hpp"
#include "countly/logger_module.hpp"
#include "countly/storage_module_base.hpp"
#include <memory>
#include <string>
namespace cly {
class StorageModuleDB : public StorageModuleBase {
private:
bool createSchema(const char tableName[], const char keyColumnName[], const char dataColumnName[]);
void vacuumDatabase();
public:
StorageModuleDB(std::shared_ptr<CountlyConfiguration> config, std::shared_ptr<LoggerModule> logger);
~StorageModuleDB();
void init() override;
long long RQCount() override;
void RQClearAll() override;
virtual void RQRemoveFront() override;
const std::shared_ptr<DataEntry> RQPeekFront() override;
std::vector<std::shared_ptr<DataEntry>> RQPeekAll() override;
void RQRemoveFront(std::shared_ptr<DataEntry> request) override;
void RQInsertAtEnd(const std::string &request) override;
void storeSDKBehaviorSettings(const std::string &sdk_behavior_settings) override;
std::string getSDKBehaviorSettings() override;
};
} // namespace cly
#endif