跳到主要内容

WorkingTreeRestoreSessionInfo

Defined in: packages/rxdb-plugin-working-tree/src/working-tree/restore-command.ts:443

当前分支那个尚未结束的恢复会话(contracts/core-api.md §5)。

Remarks​

恰好四个字段,不带那两个 revision。它们是 status() 判 restoring / conflicted 的内部依据, 交出去只会多一种算法:调用方拿两个数自己比一遍,而那份比较与 status.ts 的那份迟早分岔。 要知道会话还成不成立就读 status(),那里的 restoring / conflicted 是同一份判定的唯一出口。

Properties​

branchId​

readonly branchId: string;

Defined in: packages/rxdb-plugin-working-tree/src/working-tree/restore-command.ts:447

会话所属分支


id​

readonly id: string;

Defined in: packages/rxdb-plugin-working-tree/src/working-tree/restore-command.ts:445

会话行主键


status​

readonly status: WorkingTreeRestoreSessionStatus;

Defined in: packages/rxdb-plugin-working-tree/src/working-tree/restore-command.ts:451

会话状态


targetCommitId​

readonly targetCommitId: string;

Defined in: packages/rxdb-plugin-working-tree/src/working-tree/restore-command.ts:449

这次恢复的来源 commit