Class: SimpleDocumentStore
Extends
KVDocumentStore
Constructors
new SimpleDocumentStore()
new SimpleDocumentStore(
kvStore
?,namespace
?):SimpleDocumentStore
Parameters
• kvStore?: SimpleKVStore
• namespace?: string
Returns
Overrides
KVDocumentStore.constructor
Source
packages/core/src/storage/docStore/SimpleDocumentStore.ts:17
Properties
kvStore
private
kvStore:SimpleKVStore
Source
packages/core/src/storage/docStore/SimpleDocumentStore.ts:15
Methods
addDocuments()
addDocuments(
docs
,allowUpdate
):Promise
<void
>
Parameters
• allowUpdate: boolean
= true
Returns
Promise
<void
>
Inherited from
KVDocumentStore.addDocuments
Source
packages/core/src/storage/docStore/KVDocumentStore.ts:40
deleteDocument()
deleteDocument(
docId
,raiseError
,removeRefDocNode
):Promise
<void
>
Parameters
• docId: string
• raiseError: boolean
= true
• removeRefDocNode: boolean
= true
Returns
Promise
<void
>
Inherited from
KVDocumentStore.deleteDocument
Source
packages/core/src/storage/docStore/KVDocumentStore.ts:143
deleteRefDoc()
deleteRefDoc(
refDocId
,raiseError
):Promise
<void
>
Parameters
• refDocId: string
• raiseError: boolean
= true
Returns
Promise
<void
>
Inherited from
KVDocumentStore.deleteRefDoc
Source
packages/core/src/storage/docStore/KVDocumentStore.ts:160
docs()
Returns
Promise
<Record
<string
, BaseNode
<Metadata
>>>
Inherited from
KVDocumentStore.docs
Source
packages/core/src/storage/docStore/KVDocumentStore.ts:26
documentExists()
documentExists(
docId
):Promise
<boolean
>
Parameters
• docId: string
Returns
Promise
<boolean
>
Inherited from
KVDocumentStore.documentExists
Source
packages/core/src/storage/docStore/KVDocumentStore.ts:117
getAllDocumentHashes()
getAllDocumentHashes():
Promise
<Record
<string
,string
>>
Returns
Promise
<Record
<string
, string
>>
Inherited from
KVDocumentStore.getAllDocumentHashes
Source
packages/core/src/storage/docStore/KVDocumentStore.ts:191
getAllRefDocInfo()
getAllRefDocInfo():
Promise
<undefined
|Record
<string
,RefDocInfo
>>
Returns
Promise
<undefined
| Record
<string
, RefDocInfo
>>
Inherited from
KVDocumentStore.getAllRefDocInfo
Source
packages/core/src/storage/docStore/KVDocumentStore.ts:105
getDocument()
getDocument(
docId
,raiseError
):Promise
<undefined
|BaseNode
<Metadata
>>
Parameters
• docId: string
• raiseError: boolean
= true
Returns
Promise
<undefined
| BaseNode
<Metadata
>>
Inherited from
KVDocumentStore.getDocument
Source
packages/core/src/storage/docStore/KVDocumentStore.ts:82
getDocumentHash()
getDocumentHash(
docId
):Promise
<undefined
|string
>
Parameters
• docId: string
Returns
Promise
<undefined
| string
>
Inherited from
KVDocumentStore.getDocumentHash
Source
packages/core/src/storage/docStore/KVDocumentStore.ts:186