Class: MigrationEngine
Defined in: packages/agentos/src/rag/migration/MigrationEngine.ts:33
Constructors
Constructor
new MigrationEngine():
MigrationEngine
Returns
MigrationEngine
Methods
migrate()
staticmigrate(options):Promise<MigrationResult>
Defined in: packages/agentos/src/rag/migration/MigrationEngine.ts:47
Migrate data between any two backends.
The engine:
- Connects to source and lists available tables.
- For each table, reads rows in streaming batches.
- Creates the table in the target (if it doesn't exist).
- Writes each batch to the target.
- Reports progress after each batch.
Parameters
options
Source, target, batch size, and progress callback.
Returns
Promise<MigrationResult>
Migration result with counts, duration, and any errors.