33#ifndef API_MIP_STORAGE_DELEGATE_H_
34#define API_MIP_STORAGE_DELEGATE_H_
80 const std::string& path,
82 const std::string& tableName,
83 const std::vector<std::string>& allColumns,
84 const std::vector<std::string>& encryptedColumns,
85 const std::vector<std::string>& keyColumns)
const = 0;
100 bool isRemoteStorage,
101 bool isInMemoryStorageSupported,
103 : mIsRemoteStorage(isRemoteStorage),
104 mIsInMemoryStorageSupported(isInMemoryStorageSupported),
105 mOnDiskExtension(onDiskExtension) {}
134 bool mIsRemoteStorage;
135 bool mIsInMemoryStorageSupported;
136 std::string mOnDiskExtension;
Settings used by StorageDelegate.
StorageSettings(bool isRemoteStorage, bool isInMemoryStorageSupported, const std::string &onDiskExtension=GetSqliteExtension())
Interface for configuring the storage settings.
bool IsInMemoryStorageSupported() const
Gets whether the delegate supports in-memory storage.
std::string OnDiskExtension() const
Gets the extension that the delegate will use when storing a table on disk.
bool IsRemoteStorage() const
Gets whether remote storage is used or not.
A class that defines the interface to the MIP SDK storage for caching.
virtual StorageSettings GetSettings() const =0
Gets settings used by StorageDelegate.
virtual mip::StorageTableResult CreateStorageTable(const std::string &path, const MipComponent mipComponent, const std::string &tableName, const std::vector< std::string > &allColumns, const std::vector< std::string > &encryptedColumns, const std::vector< std::string > &keyColumns) const =0
Creates an instance of a storage table that MIP uses for caching.
A file Containing the common types used by the upe, file and protection modules.
const std::string & GetSqliteExtension()
A simple framework to create a response to delegate calls that can result in error.
mip::DelegateResponse< mip::StorageTable > StorageTableResult
A delegate response type for StorageTable.
MipComponent
Describes the MIP component to be used in the application.
Defines StorageTable interface.