跳到主要内容

RestoreIncompatibility

Defined in: packages/rxdb-plugin-working-tree/src/working-tree/restore-precheck.ts:117

首个不兼容节点的稳定描述(FR-050)。

Remarks​

四样缺一不可:没有 commitId 用户不知道查哪个节点;没有 direction 不知道该看 patch 还是 inversePatch;没有 namespace / entity 不知道是哪张表;没有 manifest 不知道 该升客户端还是该降数据。

不带 patch 内容。 这个对象会进日志与上报,而 patch 里可能躺着加密列的密文(FR-043)。

Properties​

commitId​

readonly commitId: string;

Defined in: packages/rxdb-plugin-working-tree/src/working-tree/restore-precheck.ts:119

重放顺序上第一个不兼容的 commit id


direction​

readonly direction: "reverse";

Defined in: packages/rxdb-plugin-working-tree/src/working-tree/restore-precheck.ts:122

这一步的重放方向,见 RestoreReplayDirection


entity​

readonly entity: string;

Defined in: packages/rxdb-plugin-working-tree/src/working-tree/restore-precheck.ts:128

该 ChangeSet 的目标实体名


manifest​

readonly manifest: RestoreVersionManifest;

Defined in: packages/rxdb-plugin-working-tree/src/working-tree/restore-precheck.ts:131

版本 manifest,见 RestoreVersionManifest


namespace​

readonly namespace: string;

Defined in: packages/rxdb-plugin-working-tree/src/working-tree/restore-precheck.ts:125

该 ChangeSet 的目标实体命名空间