Class: SqliteExporter
Defined in: packages/agentos/src/memory/io/SqliteExporter.ts:31
Exports a SqliteBrain as a portable SQLite file.
Usage:
const exporter = new SqliteExporter(brain);
await exporter.export('/path/to/backup.sqlite');
Constructors
Constructor
new SqliteExporter(
brain):SqliteExporter
Defined in: packages/agentos/src/memory/io/SqliteExporter.ts:35
Parameters
brain
The SqliteBrain instance to export.
Returns
SqliteExporter
Methods
export()
export(
outputPath,_options?):Promise<void>
Defined in: packages/agentos/src/memory/io/SqliteExporter.ts:55
Copy the brain database to outputPath.
Uses VACUUM INTO which:
- Checkpoints all WAL frames into the output file.
- Creates a compact, defragmented copy (no
-walor-shmsidecar). - Is safe to run while the database is open and being written to.
The parent directory of outputPath must already exist.
Parameters
outputPath
string
Absolute path for the SQLite backup file.
_options?
Export options (unused — SQLite export always includes all data including embeddings).
Returns
Promise<void>