WorkingTreeDiffTransaction
Defined in: packages/rxdb-plugin-working-tree/src/working-tree/diff.ts:106
事务粒度下的一组单元。
Remarks
transactionId 为 null 的单元各自成组,不并进同一个「无事务」桶:并成一桶等于
宣称两次互不相干的 save() 属于同一个原子操作,而用户在界面上看到的是「撤销这一组」。
Properties
entries
readonly entries: readonly WorkingTreeDiffEntry[];
Defined in: packages/rxdb-plugin-working-tree/src/working-tree/diff.ts:111
组内单元,保持读出的顺序
transactionId
readonly transactionId: string | null;
Defined in: packages/rxdb-plugin-working-tree/src/working-tree/diff.ts:108
这一组的事务 id;null 表示这一组只有一次独立的写