NAME
hyle-source/store.h - Pluggable storage driver interface for hyle-source.
SYNOPSIS
#include <stddef.h>
#include <stdint.h>
Data Structures
Pluggable storage driver operations for hyle source persistence.
Storage instance bundling operations and driver-specific state.
Functions
Filesystem storage driver ops (var/<dataset>/<id>/ layout).
Construct a filesystem store.
In-memory storage driver ops (tests and ephemeral datasets).
Construct an in-memory store.
Tokenized binary storage driver ops (record.tok / .tok layout).
Construct a tokenized binary store.
Detailed Description
Pluggable storage driver interface for hyle-source.
Decouples persistence (filesystem, in-memory, or a database) from the hyle dataset query and indexing engine.
Function Documentation
hyle_source_store_t hyle_source_store_fs (const char * items_path)
Construct a filesystem store.
Parameters
items_path Base items directory.
Returns
A filesystem-backed store instance.
const hyle_source_store_ops_t * hyle_source_store_fs_ops (void )
Filesystem storage driver ops (var/<dataset>/<id>/ layout).
Returns
The filesystem driver ops table.
hyle_source_store_t hyle_source_store_mem (void )
Construct an in-memory store.
Returns
An in-memory store instance.
const hyle_source_store_ops_t * hyle_source_store_mem_ops (void )
In-memory storage driver ops (tests and ephemeral datasets).
Returns
The in-memory driver ops table.
hyle_source_store_t hyle_source_store_tok (const char * items_path)
Construct a tokenized binary store.
Parameters
items_path Base items directory.
Returns
A tokenized store instance.
const hyle_source_store_ops_t * hyle_source_store_tok_ops (void )
Tokenized binary storage driver ops (record.tok / .tok layout).
Returns
The tokenized driver ops table.
Author
Generated automatically by Doxygen for libhyle-source from the source code.