basalt / drives/src / DriveConnectionStore
Interface: DriveConnectionStore
Defined in: drives/src/store.ts:128
Methods
create()
> create(record): Promise<void>
Defined in: drives/src/store.ts:129
Parameters
record
Returns
Promise<void>
delete()
> delete(tenantId, id): Promise<void>
Defined in: drives/src/store.ts:146
Parameters
tenantId
string
id
string
Returns
Promise<void>
find()
> find(tenantId, id): Promise<DriveConnection | null>
Defined in: drives/src/store.ts:130
Parameters
tenantId
string
id
string
Returns
Promise<DriveConnection | null>
list()
> list(tenantId, filter?): Promise<DriveConnection[]>
Defined in: drives/src/store.ts:131
Parameters
tenantId
string
filter?
Returns
Promise<DriveConnection[]>
update()
> update(tenantId, id, patch, expectedRevision?): Promise<DriveConnection | null>
Defined in: drives/src/store.ts:140
Applies patch and bumps revision.
When expectedRevision is given the write applies only if the stored revision still matches; otherwise it must return null and change nothing. A store that ignores this argument is not safe to run more than one worker against — see DriveConnection.revision.
Parameters
tenantId
string
id
string
patch
expectedRevision?
number
Returns
Promise<DriveConnection | null>