跳到主要内容

parseRxDBEntityIdentityKey()

function parseRxDBEntityIdentityKey(key): RxDBEntityId;

Defined in: packages/rxdb/src/system/change-codec.ts:480

getRxDBEntityIdentityKey 的逆运算;不带前缀时视为"非身份键", 原样返回 —— 这样 parseRxDBEntityIdentityKey(decodeRxDBEntityIdentityKey(x)) === x 对任意字符串 x 都不抛错,调用方可以无条件来回转。

Parameters​

ParameterType
keystring

Returns​

RxDBEntityId