LocalRxDBBranchRepository
Defined in: packages/rxdb/src/system/types.local.ts:25
RxDBBranch 本地仓库接口
Methods
count()
count(options): Promise<number>;
Defined in: packages/rxdb/src/system/types.local.ts:37
count 查询
Parameters
| Parameter | Type | Description |
|---|---|---|
options | CountOptions<typeof RxDBBranch, RxDBBranchRuleGroup> | 查询选项 |
Returns
Promise<number>
返回查询结果数量
create()
create(entity): Promise<RxDBBranch>;
Defined in: packages/rxdb/src/system/types.local.ts:44
创建实体
Parameters
| Parameter | Type | Description |
|---|---|---|
entity | RxDBBranch | 要创建的实体 |
Returns
Promise<RxDBBranch>
返回创建后的实体
find()
find(options): Promise<RxDBBranch[]>;
Defined in: packages/rxdb/src/system/types.local.ts:31
find 查询
Parameters
| Parameter | Type | Description |
|---|---|---|
options | FindOptions<typeof RxDBBranch, RxDBBranchRuleGroup, RxDBBranchOrderByField> | 查询选项 |
Returns
Promise<RxDBBranch[]>
返回查询结果数组
remove()
remove(entity): Promise<RxDBBranch>;
Defined in: packages/rxdb/src/system/types.local.ts:62
删除实体
Parameters
| Parameter | Type | Description |
|---|---|---|
entity | RxDBBranch | 要删除的实体 |
Returns
Promise<RxDBBranch>
返回删除的实体
update()
update(entity, patch): Promise<RxDBBranch>;
Defined in: packages/rxdb/src/system/types.local.ts:52
更新实体
Parameters
| Parameter | Type | Description |
|---|---|---|
entity | RxDBBranch | 要更新的实体 |
patch | Partial<InstanceType<typeof RxDBBranch>> | 更新数据 |
Returns
Promise<RxDBBranch>
返回更新后的实体