Class: PostgresIndexStore
Extends
KVIndexStore
Constructors
new PostgresIndexStore()
new PostgresIndexStore(
config
?):PostgresIndexStore
Parameters
• config?: PostgresIndexStoreConfig
Returns
Overrides
KVIndexStore.constructor
Defined in
packages/llamaindex/src/storage/indexStore/PostgresIndexStore.ts:15
Methods
addIndexStruct()
addIndexStruct(
indexStruct
):Promise
<void
>
Parameters
• indexStruct: IndexStruct
Returns
Promise
<void
>
Inherited from
KVIndexStore.addIndexStruct
Defined in
packages/llamaindex/src/storage/indexStore/KVIndexStore.ts:20
deleteIndexStruct()
deleteIndexStruct(
key
):Promise
<void
>
Parameters
• key: string
Returns
Promise
<void
>
Inherited from
KVIndexStore.deleteIndexStruct
Defined in
packages/llamaindex/src/storage/indexStore/KVIndexStore.ts:26
getIndexStruct()
getIndexStruct(
structId
?):Promise
<undefined
|IndexStruct
>
Parameters
• structId?: string
Returns
Promise
<undefined
| IndexStruct
>
Inherited from
KVIndexStore.getIndexStruct
Defined in
packages/llamaindex/src/storage/indexStore/KVIndexStore.ts:30
getIndexStructs()
getIndexStructs():
Promise
<IndexStruct
[]>
Returns
Promise
<IndexStruct
[]>
Inherited from
KVIndexStore.getIndexStructs
Defined in
packages/llamaindex/src/storage/indexStore/KVIndexStore.ts:46
persist()
persist(
persistPath
?):Promise
<void
>
Parameters
• persistPath?: string
Returns
Promise
<void
>
Inherited from
KVIndexStore.persist
Defined in
packages/core/storage/index-store/dist/index.d.ts:10