quasardb C API: qdb/blob.h File Reference

quasardb C API

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
blob.h File Reference
`#include "client.h"`

## Functions
QDB_API_LINKAGE qdb_error_t | qdb_blob_get_noalloc (qdb_handle_t handle, const char *alias, void *content, qdb_size_t *content_length)
| Retrieves an entry's content from the quasardb server. The caller is responsible for allocating and freeing the provided buffer. More...
QDB_API_LINKAGE qdb_error_t | qdb_blob_get (qdb_handle_t handle, const char *alias, const void **content, qdb_size_t *content_length)
| Retrieves an entry's content from the quasardb server. More...
QDB_API_LINKAGE qdb_error_t | qdb_reserved_blob_get (qdb_handle_t handle, const char *alias, const void **content, qdb_size_t *content_length, qdb_size_t offset)
| Retrieves a part of an entry's content from the quasardb server. More...
QDB_API_LINKAGE qdb_error_t | qdb_blob_get_and_remove (qdb_handle_t handle, const char *alias, const void **content, qdb_size_t *content_length)
| Atomically gets an entry from the quasardb server and removes it. More...
QDB_API_LINKAGE qdb_error_t | qdb_blob_put (qdb_handle_t handle, const char *alias, const void *content, qdb_size_t content_length, qdb_time_t expiry_time)
| Creates a new entry and sets its content to the provided blob. More...
QDB_API_LINKAGE qdb_error_t | qdb_blob_update (qdb_handle_t handle, const char *alias, const void *content, qdb_size_t content_length, qdb_time_t expiry_time)
| Creates or updates an entry and sets its content to the provided blob. More...
QDB_API_LINKAGE qdb_error_t | qdb_reserved_blob_merge (qdb_handle_t handle, const char *alias, const void *content, qdb_size_t content_length, qdb_size_t offset, int truncate, qdb_time_t expiry_time)
| This function is reserved for internal use and its usage is discouraged. More...
QDB_API_LINKAGE qdb_error_t | qdb_blob_get_and_update (qdb_handle_t handle, const char *alias, const void *update_content, qdb_size_t update_content_length, qdb_time_t expiry_time, const void **get_content, qdb_size_t *get_content_length)
| Atomically gets and updates (in this order) the entry on the quasardb server. More...
QDB_API_LINKAGE qdb_error_t | qdb_blob_compare_and_swap (qdb_handle_t handle, const char *alias, const void *new_value, qdb_size_t new_value_length, const void *comparand, qdb_size_t comparand_length, qdb_time_t expiry_time, const void **original_value, qdb_size_t *original_value_length)
| Atomically compares the entry with comparand and updates it to `new_value` if, and only if, they match. More...
QDB_API_LINKAGE qdb_error_t | qdb_blob_remove_if (qdb_handle_t handle, const char *alias, const void *comparand, qdb_size_t comparand_length)
| Atomically removes the entry on the server if the content matches. More...
QDB_API_LINKAGE qdb_error_t | qdb_blob_scan (qdb_handle_t handle, const void *pattern, qdb_size_t pattern_length, qdb_int_t max_count, const char ***aliases, size_t *alias_count)
| Retrieves all blobs that have content matching the specified pattern. More...
QDB_API_LINKAGE qdb_error_t | qdb_blob_scan_regex (qdb_handle_t handle, const char *pattern, qdb_int_t max_count, const char ***aliases, size_t *alias_count)
| Retrieves all blobs that have content matching the specified regular expression (regex) More...