Skip to main content

Interface: MigrationOptions

Defined in: packages/agentos/src/cognition/rag/migration/types.ts:49

Options for a migration operation.

Properties​

batchSize?​

optional batchSize: number

Defined in: packages/agentos/src/cognition/rag/migration/types.ts:55

Rows per batch for streaming reads/writes.

Default​

1000

dryRun?​

optional dryRun: boolean

Defined in: packages/agentos/src/cognition/rag/migration/types.ts:64

If true, counts rows but does not write to target.

Default​

false

from​

from: BackendConfig

Defined in: packages/agentos/src/cognition/rag/migration/types.ts:51

Source backend configuration.


onProgress()?​

optional onProgress: (done, total, table) => void

Defined in: packages/agentos/src/cognition/rag/migration/types.ts:62

Progress callback fired after each batch write.

Parameters​

done​

number

Number of rows written so far for the current table.

total​

number

Total row count for the current table.

table​

string

Name of the table currently being migrated.

Returns​

void


to​

to: BackendConfig

Defined in: packages/agentos/src/cognition/rag/migration/types.ts:53

Target backend configuration.