跳到主要内容

SwitchBranchActionReaders

Defined in: packages/rxdb-plugin-history/src/switch-branch-actions.ts:27

算切换分支所需操作要用到的最小仓库能力。

Remarks​

与 BranchChangeReader 同一个理由写成结构化接口:本地仓库与事务执行器给出的 IRepository 都接得住,两边的 find 入参本就是同一个类型。

Properties​

branchRepository​

readonly branchRepository: object;

Defined in: packages/rxdb-plugin-history/src/switch-branch-actions.ts:29

读分支行

find()​

find(options): Promise<RxDBBranch[]>;

按条件查分支

Parameters​
ParameterTypeDescription
optionsFindOptions<typeof RxDBBranch, RxDBBranchRuleGroup>查询选项
Returns​

Promise<RxDBBranch[]>

命中的分支行


changeRepository​

readonly changeRepository: BranchChangeReader;

Defined in: packages/rxdb-plugin-history/src/switch-branch-actions.ts:40

读变更行;见 BranchChangeReader