Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
entropic_storage.cpp File Reference

C API facade for storage open/close. More...

#include "engine_handle.h"
#include <entropic/entropic.h>
#include <entropic/types/logging.h>
#include <stdexcept>
Include dependency graph for entropic_storage.cpp:

Go to the source code of this file.

Functions

ENTROPIC_EXPORT entropic_error_t entropic_storage_open (entropic_handle_t handle, const char *db_path)
 Open or create a SQLite storage backend.
 
ENTROPIC_EXPORT entropic_error_t entropic_storage_close (entropic_handle_t handle)
 Close the storage backend.
 

Variables

static auto logger = entropic::log::get("facade.storage")
 

Detailed Description

C API facade for storage open/close.

Exposes storage lifecycle through the engine handle. The underlying implementation is in librentropic-storage.so via i_storage_backend.h.

Version
2.0.0

Definition in file entropic_storage.cpp.

Function Documentation

◆ entropic_storage_close()

ENTROPIC_EXPORT entropic_error_t entropic_storage_close ( entropic_handle_t  handle)

Close the storage backend.

Close the storage backend and flush pending writes.

Parameters
handleEngine handle returned by entropic_create.
Returns
ENTROPIC_OK (no-op if storage not opened).

Definition at line 63 of file entropic_storage.cpp.

◆ entropic_storage_open()

ENTROPIC_EXPORT entropic_error_t entropic_storage_open ( entropic_handle_t  handle,
const char *  db_path 
)

Open or create a SQLite storage backend.

Parameters
handleEngine handle returned by entropic_create.
db_pathFilesystem path to the SQLite database file.
Returns
ENTROPIC_OK on success.

Definition at line 30 of file entropic_storage.cpp.

Variable Documentation

◆ logger

auto logger = entropic::log::get("facade.storage")
static

Definition at line 18 of file entropic_storage.cpp.