PMEMKV
1.2.1-git1.g9b6e240
This is the C++ documentation for PMEMKV.
|
Main pmemkv namespace. More...
Namespaces | |
internal | |
internal pmemkv classes for C++ API | |
Classes | |
class | config |
Holds configuration parameters for engines. More... | |
class | db |
Main pmemkv class, it provides functions to operate on data in database. More... | |
class | string_view |
Our brief std::string_view implementation. More... | |
Typedefs | |
typedef int | get_kv_function(string_view key, string_view value) |
The C++ idiomatic function type to use for callback using key-value pair. More... | |
typedef void | get_v_function(string_view value) |
The C++ idiomatic function type to use for callback using only the value. More... | |
typedef int | comparator_function(string_view key1, string_view key2) |
using | get_kv_callback = pmemkv_get_kv_callback |
Key-value pair callback, C-style. More... | |
using | get_v_callback = pmemkv_get_v_callback |
Value-only callback, C-style. More... | |
Enumerations | |
enum | status { status::OK = PMEMKV_STATUS_OK, status::UNKNOWN_ERROR = PMEMKV_STATUS_UNKNOWN_ERROR, status::NOT_FOUND = PMEMKV_STATUS_NOT_FOUND, status::NOT_SUPPORTED = PMEMKV_STATUS_NOT_SUPPORTED, status::INVALID_ARGUMENT = PMEMKV_STATUS_INVALID_ARGUMENT, status::CONFIG_PARSING_ERROR, status::CONFIG_TYPE_ERROR, status::STOPPED_BY_CB = PMEMKV_STATUS_STOPPED_BY_CB, status::OUT_OF_MEMORY, status::WRONG_ENGINE_NAME, status::TRANSACTION_SCOPE_ERROR, status::DEFRAG_ERROR = PMEMKV_STATUS_DEFRAG_ERROR, status::COMPARATOR_MISMATCH } |
Status returned by pmemkv functions. More... | |
Main pmemkv namespace.
It contains all pmemkv public types, enums, classes with their functions and members. It is located within pmem namespace.
typedef int pmem::kv::comparator_function(string_view key1, string_view key2) |
using pmem::kv::get_kv_callback = typedef pmemkv_get_kv_callback |
Key-value pair callback, C-style.
typedef int pmem::kv::get_kv_function(string_view key, string_view value) |
The C++ idiomatic function type to use for callback using key-value pair.
[in] | key | returned by callback item's key |
[in] | value | returned by callback item's data |
using pmem::kv::get_v_callback = typedef pmemkv_get_v_callback |
Value-only callback, C-style.
typedef void pmem::kv::get_v_function(string_view value) |
The C++ idiomatic function type to use for callback using only the value.
It is used only by non-range get() calls.
[in] | value | returned by callback item's data |
|
strong |
Status returned by pmemkv functions.
Each function, except for db::close() and pmem::kv::errormsg(), returns one of the following status codes.