Skip to content

Function: recordToPyBytes() ​

recordToPyBytes(record): Uint8Array

Defined in: migrate-interop.ts:73

Serialises a record exactly as py's MigrationRecord.to_bytes() does.

Parameters ​

record ​

MigrationRecord

The record to write.

Returns ​

Uint8Array

The CBOR bytes of the record dict.

Throws ​

if the record's metadata holds a value the CBOR codec cannot encode (for example a non-finite number).

Apache-2.0.