Skip to content

Function: recordFromPyBytes() ​

recordFromPyBytes(data): MigrationRecord

Defined in: migrate-interop.ts:63

Parses one py "<id>_current" value.

Parameters ​

data ​

Uint8Array

The CBOR bytes of one record dict.

Returns ​

MigrationRecord

The record.

Throws ​

if the bytes are not valid CBOR in the accepted subset, are not a map, or are not a valid record.

Apache-2.0.