Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/memory / / migrateEmbedder
Function: migrateEmbedder()
ts
function migrateEmbedder(options): AsyncGenerator<MigrationProgress, void, unknown>;Defined in: packages/memory/src/migration/embedder-migration.ts:122
Stream embedder migrations as AsyncIterable<MigrationProgress>.
The function is the universal entry point for every migration strategy:
'lock-on-first': surfaces the locked error eagerly so the operator can act before any work happens.'multi-active': registers the target alongside the source and yields a single'committed'progress event.'auto-migrate': streams batches until the source is fully drained, then retires the source row.
Parameters
| Parameter | Type |
|---|---|
options | MigrateEmbedderOptions |
Returns
AsyncGenerator<MigrationProgress, void, unknown>