跳到主要内容

WorkingTreeDiff

Defined in: packages/rxdb-plugin-working-tree/src/working-tree/diff.ts:115

一次 diff() 的全部回答(contracts/core-api.md §3)。

Properties​

baseHeadCommitId​

readonly baseHeadCommitId: string | null;

Defined in: packages/rxdb-plugin-working-tree/src/working-tree/diff.ts:120

比较的左端:工作树基于的那个 commit;分支还没有任何提交时为 null


branchId​

readonly branchId: string;

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

摊开的是哪条分支


entries​

readonly entries: readonly WorkingTreeDiffEntry[];

Defined in: packages/rxdb-plugin-working-tree/src/working-tree/diff.ts:129

实体粒度的行;事务粒度下恒为空数组


granularity​

readonly granularity: WorkingTreeDiffGranularity;

Defined in: packages/rxdb-plugin-working-tree/src/working-tree/diff.ts:126

本次实际使用的粒度


nextCursor​

readonly nextCursor: string | null;

Defined in: packages/rxdb-plugin-working-tree/src/working-tree/diff.ts:135

续读游标;本页已到末尾时为 null


transactions​

readonly transactions: readonly WorkingTreeDiffTransaction[];

Defined in: packages/rxdb-plugin-working-tree/src/working-tree/diff.ts:132

事务粒度的组;实体粒度下恒为空数组


workingTreeRevision​

readonly workingTreeRevision: number;

Defined in: packages/rxdb-plugin-working-tree/src/working-tree/diff.ts:123

比较的右端:当前工作树 revision