跳到主要内容

readCommitChangeSetPage()

function readCommitChangeSetPage(
executor,
codec,
commitId
): Promise<CommitChangeSetPage>;

Defined in: packages/rxdb-plugin-working-tree/src/commit/commit-changes.ts:37

读一个 commit 的全部变更单元。

Parameters​

ParameterTypeDescription
executorTransactionExecutor调用方那个事务的执行器;本函数不自己开事务
codecWorkingTreePatchCodecContext解码用的元数据解析上下文;不需要 at-rest 判定器(本函数不判、也不解密)
commitIdstring要读的 commit id

Returns​

Promise<CommitChangeSetPage>

见 CommitChangeSetPage

Throws​

RxDBError 该 commit 不存在时