Skip to main content

Module service

Module service 

Source
Expand description

MemoryService — the primary facade over SurrealStorage.

Wraps the surreal-memory MemoryStorage trait implementation with UAR-level scope enforcement, error handling, and logging. All callers should use this struct rather than accessing SurrealStorage directly. Construction and concrete database capabilities require surreal-backend.

Structs§

MemoryCloseReport
The acknowledged result of closing memory’s local scope.
MemoryLiveStream
A scope-accounted memory live query.
MemoryService
Facade over SurrealStorage with scope-aware helpers.
MemorySubscriptionClient
An admitted, table-scoped client for the memory database’s lifecycle-owned realtime source. It deliberately does not expose the raw database handle. The caller owns every stream it obtains and must close each stream before the memory scope is released.

Enums§

MemoryStorageOwnership
Who owns the database engine behind this memory facade.