Skip to content

Function: importFromPyStore() ​

importFromPyStore(entries, manager): Promise<string[]>

Defined in: migrate-interop.ts:81

Imports a py store ("<id>_current" and "<id>_history" entries) into manager. Each key's history is validated as a continuous chain of legal transitions; keys that already have history in manager are refused (an error, nothing is overwritten). Keys with a _current but no readable _history are imported from the single current record.

Parameters ​

entries ​

Iterable<readonly [string, Uint8Array<ArrayBufferLike>]>

manager ​

MigrationStateManager

Returns ​

Promise<string[]>

the imported key ids.

Apache-2.0.