跳到主要内容

CommitLogEntry

Defined in: packages/rxdb-plugin-working-tree/src/commit/commit-log.ts:60

历史里的一个提交节点。

Remarks​

字段是 Commit 实体列的一个子集:operationId 与 contentFingerprint 被刻意 挡在外面(见本文件头)。id 改叫 commitId、author 改叫 authorId,与 CommitResult.commitId 和 CommitOptions.authorId 对齐——同一个概念在 公开面上只该有一个名字。

Properties​

authorId​

readonly authorId: string | null;

Defined in: packages/rxdb-plugin-working-tree/src/commit/commit-log.ts:77

提交者;未记录时为 null


changeSetCount​

readonly changeSetCount: number;

Defined in: packages/rxdb-plugin-working-tree/src/commit/commit-log.ts:83

本次提交的变更单元数


commitId​

readonly commitId: string;

Defined in: packages/rxdb-plugin-working-tree/src/commit/commit-log.ts:62

提交 id


createdAt​

readonly createdAt: Date;

Defined in: packages/rxdb-plugin-working-tree/src/commit/commit-log.ts:80

数据库时间


firstParentId​

readonly firstParentId: string | null;

Defined in: packages/rxdb-plugin-working-tree/src/commit/commit-log.ts:68

第一父;根节点为 null


kind​

readonly kind: CommitKind;

Defined in: packages/rxdb-plugin-working-tree/src/commit/commit-log.ts:71

提交种类;baseline / branch_baseline 是系统根节点,不是用户提交


message​

readonly message: string;

Defined in: packages/rxdb-plugin-working-tree/src/commit/commit-log.ts:74

提交消息


parentIds​

readonly parentIds: readonly string[];

Defined in: packages/rxdb-plugin-working-tree/src/commit/commit-log.ts:65

全部父节点,顺序即写入顺序;根节点是空数组,merge 有多个