Interface to the create and alter a storage for strus.
More...
#include <storageInterface.hpp>
Interface to the create and alter a storage for strus.
Enumeration of different type of configurations Needed for getting the correct description of the configuration.
Enumerator |
---|
CmdCreateClient |
Config description for the creation of an instance accessing the repository.
|
CmdCreate |
Config description for the creation of a repository that does not exist yet.
|
virtual strus::StorageInterface::~StorageInterface |
( |
| ) |
|
|
inlinevirtual |
Create an interface to alter the meta data table structure.
- Parameters
-
[in] | configsource | Configuration source string describing the storage and the database (not a filename !) |
[in] | database | key value store database type used by this storage |
- Returns
- the created reference to be disposed with delete by the caller
Creates an client instance of the storage using a defined key value store database.
- Parameters
-
[in] | configsource | configuration source string describing the storage and the database (not a filename !) |
[in] | database | key value store database type used by this storage |
[in] | (optional) | statisticsProc defines the format of statistic messages (distribute statistics) |
Create a dump of a storage.
- Parameters
-
[in] | configsource | Configuration source string describing the storage and the database (not a filename !) |
[in] | database | key value store database type used by the storage |
[in] | keyprefix | prefix for keys to resrict the dump to |
- Returns
- the object to fetch the dump from
virtual bool strus::StorageInterface::createStorage |
( |
const std::string & |
configsource, |
|
|
const DatabaseInterface * |
database |
|
) |
| const |
|
pure virtual |
Creates a new storage described with configsource using a defined key value store database.
- Parameters
-
[in] | configsource | Configuration source string describing the storage and the database (not a filename !) |
[in] | database | key value store database type used by this storage |
- Returns
- true on success, false on error
virtual const char* strus::StorageInterface::getConfigDescription |
( |
const ConfigType & |
type | ) |
const |
|
pure virtual |
Gets a configuration description (source string as used by the functions here) createStorage(const std::string&) and createClient(const std::string&) for the usage printed by programs using this storage implementation.
virtual const char** strus::StorageInterface::getConfigParameters |
( |
const ConfigType & |
type | ) |
const |
|
pure virtual |
Get the list of known configuration parameter keys for verification of the configuration by programs using this storage implementation.
The documentation for this class was generated from the following file: