16 #ifndef ALEXA_CLIENT_SDK_STORAGE_SQLITESTORAGE_INCLUDE_SQLITESTORAGE_SQLITEMISCSTORAGE_H_ 17 #define ALEXA_CLIENT_SDK_STORAGE_SQLITESTORAGE_INCLUDE_SQLITESTORAGE_SQLITEMISCSTORAGE_H_ 27 namespace sqliteStorage {
42 const std::shared_ptr<avsCommon::utils::configuration::ConfigurationNode>& configurationRoot);
52 static std::unique_ptr<SQLiteMiscStorage>
create(
63 static std::unique_ptr<SQLiteMiscStorage>
create(
const std::string& databasePath);
75 void close()
override;
105 bool* tableEntryExistsValue)
override;
110 std::unordered_map<std::string, std::string>* valueContainer)
override;
141 bool getKeyValueTypesLocked(
195 bool createDatabaseLocked();
215 bool isOpenedLocked();
236 bool createTableLocked(
360 bool tableEntryExistsLocked(
364 bool* tableEntryExistsValue);
376 bool tableExistsLocked(
const std::string& componentName,
const std::string& tableName,
bool* tableExistsValue);
391 std::unordered_map<std::string, std::string>* valueContainer);
404 #endif // ALEXA_CLIENT_SDK_STORAGE_SQLITESTORAGE_INCLUDE_SQLITESTORAGE_SQLITEMISCSTORAGE_H_ ValueType
The type of the value column in Misc DB.
Definition: MiscStorageInterface.h:44
Definition: ConfigurationNode.h:71
Definition: SQLiteMiscStorage.h:32
static std::shared_ptr< avsCommon::sdkInterfaces::storage::MiscStorageInterface > createMiscStorageInterface(const std::shared_ptr< avsCommon::utils::configuration::ConfigurationNode > &configurationRoot)
bool update(const std::string &componentName, const std::string &tableName, const std::string &key, const std::string &value) override
SQLiteDatabase & getDatabase()
Provides reference to a database.
::std::string string
Definition: gtest-port.h:1097
bool add(const std::string &componentName, const std::string &tableName, const std::string &key, const std::string &value) override
bool createDatabase() override
static std::unique_ptr< SQLiteMiscStorage > create(const avsCommon::utils::configuration::ConfigurationNode &configurationRoot)
static const std::string tableName
Definition: SmartScreenCaptionStateManagerTest.cpp:30
bool deleteTable(const std::string &componentName, const std::string &tableName) override
bool clearTable(const std::string &componentName, const std::string &tableName) override
bool tableEntryExists(const std::string &componentName, const std::string &tableName, const std::string &key, bool *tableEntryExistsValue) override
bool put(const std::string &componentName, const std::string &tableName, const std::string &key, const std::string &value) override
KeyType
The type of the key column in Misc DB.
Definition: MiscStorageInterface.h:36
bool load(const std::string &componentName, const std::string &tableName, std::unordered_map< std::string, std::string > *valueContainer) override
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Definition: SQLiteDatabase.h:36
static const std::string componentName
Definition: SmartScreenCaptionStateManagerTest.cpp:29
Definition: MiscStorageInterface.h:33
bool tableExists(const std::string &componentName, const std::string &tableName, bool *tableExistsValue) override
bool createTable(const std::string &componentName, const std::string &tableName, KeyType keyType, ValueType valueType) override
static const std::string key
The database key to be used by the protocol given the METADATA object.
Definition: SharedAVSSettingProtocolTest.cpp:58