NAME
hyle_source_store_ops_t - Pluggable storage driver operations for hyle source persistence.
SYNOPSIS
#include <store.h>
Data Fields
Scan the backend and populate def->source_hd with all known ids.
Load record id into row map row_out.
Persist an entire record id represented by data_handle.
Update or persist a single field value for record id.
Delete record id from persistent storage.
Detailed Description
Pluggable storage driver operations for hyle source persistence.
Field Documentation
int(* hyle_source_store_ops_t::del) (hyle_source_store_t *store, const struct hyle_source_def_s *def, const char *id)
Delete record id from persistent storage.
Parameters
store Target store.
def Dataset definition.
id Item id.
Returns
0 on success, negative error code on failure.
int(* hyle_source_store_ops_t::load) (hyle_source_store_t *store, const struct hyle_source_def_s *def, const char *id, unsigned *row_out)
Load record id into row map row_out.
Parameters
store Target store.
def Dataset definition.
id Item id.
row_out Receives the loaded row handle.
Returns
0 on success, negative error code on failure.
int(* hyle_source_store_ops_t::put) (hyle_source_store_t *store, const struct hyle_source_def_s *def, const char *id, unsigned data_handle)
Persist an entire record id represented by data_handle.
Parameters
store Target store.
def Dataset definition.
id Item id.
data_handle Corm handle of the record data.
Returns
0 on success, negative error code on failure.
int(* hyle_source_store_ops_t::put_field) (hyle_source_store_t *store, const struct hyle_source_def_s *def, const char *id, const char *field, const char *value)
Update or persist a single field value for record id.
Parameters
store Target store.
def Dataset definition.
id Item id.
field Field name.
value New field value.
Returns
0 on success, negative error code on failure.
int(* hyle_source_store_ops_t::scan) (hyle_source_store_t *store, const struct hyle_source_def_s *def)
Scan the backend and populate def->source_hd with all known ids.
Parameters
store Target store.
def Dataset definition.
Returns
0 on success, negative error code on failure.
Author
Generated automatically by Doxygen for libhyle-source from the source code.