pub trait PersistenceAdapter {
// Required method
fn ingest(
&self,
batch: &IngestionBatch,
) -> Result<IngestionResult, SoftchatError>;
}Expand description
Synchronous semantic contract for platform persistence adapters.
Platform-specific implementations normally bridge this operation to a transaction on a platform executor. The shared layer never owns Room, GRDB, IndexedDB, files, schemas, or account lifecycle.
Required Methods§
Sourcefn ingest(
&self,
batch: &IngestionBatch,
) -> Result<IngestionResult, SoftchatError>
fn ingest( &self, batch: &IngestionBatch, ) -> Result<IngestionResult, SoftchatError>
Atomically ingest or quarantine every event in batch.
§Errors
The adapter must return a stable redacted failure and must not report partial success outside one committed transaction.