Class: abstract
AbstractDatastore<DocMeta, Filter>
Extended By
Type parameters
Parameter |
---|
DocMeta extends BaseMeta |
Filter extends BaseFilter <DocMeta > |
Constructors
new AbstractDatastore(args)
new AbstractDatastore<
DocMeta
,Filter
>(args
):AbstractDatastore
<DocMeta
,Filter
>
Parameters
Parameter | Type |
---|---|
args | Opts <DocMeta , Filter > |
Returns
AbstractDatastore
<DocMeta
, Filter
>
Source
src/datastore/datastore.ts:36 (opens in a new tab)
Properties
Modifier | Property | Type | Description | Source |
---|---|---|---|---|
abstract | datastoreProvider | Provider | - | src/datastore/datastore.ts:26 (opens in a new tab) |
abstract | datastoreType | Type | - | src/datastore/datastore.ts:25 (opens in a new tab) |
Methods
abstract
delete()
abstract
delete(docIds
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
docIds | string [] |
Returns
Promise
<void
>
Source
src/datastore/datastore.ts:22 (opens in a new tab)
abstract
deleteAll()
abstract
deleteAll():Promise
<void
>
Returns
Promise
<void
>
Source
src/datastore/datastore.ts:23 (opens in a new tab)
query()
query(
query
,context
?):Promise
<QueryResult
<DocMeta
>>
Parameters
Parameter | Type |
---|---|
query | Query <DocMeta , Filter > |
context ? | Ctx |
Returns
Promise
<QueryResult
<DocMeta
>>
Source
src/datastore/datastore.ts:53 (opens in a new tab)
abstract
upsert()
abstract
upsert(docs
,context
?):Promise
<void
>
Parameters
Parameter | Type |
---|---|
docs | Doc <DocMeta >[] |
context ? | Ctx |
Returns
Promise
<void
>