Skip to main content

Module snapshot

Module snapshot 

Source
Expand description

Memory snapshot export and import.

A MemorySnapshot serializes the full set of conversations, messages, and summaries from SQLite into a JSON document suitable for backup or migration.

Import is idempotent: conversations and messages already present in the target database are skipped and counted in ImportStats::skipped.

Structs§

ConversationSnapshot
One conversation and all its associated data in a MemorySnapshot.
ImportStats
Counters returned by import_snapshot.
MemorySnapshot
Complete serializable snapshot of the SQLite memory store.
MessageSnapshot
A single message as stored in a MemorySnapshot.
SummarySnapshot
A compression summary record in a MemorySnapshot.

Functions§

export_snapshot
Export all conversations, messages and summaries from SQLite into a snapshot.
import_snapshot
Import a snapshot into SQLite, skipping duplicate entries.