Class: PostgresIndexStore
Extends
KVIndexStore
Constructors
new PostgresIndexStore()
new PostgresIndexStore(
config
?):PostgresIndexStore
Parameters
• config?
• config.connectionString?: string
• config.namespace?: string
• config.schemaName?: string
• config.tableName?: string
Returns
Overrides
KVIndexStore.constructor
Defined in
packages/llamaindex/src/storage/indexStore/PostgresIndexStore.ts:8
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:18
deleteIndexStruct()
deleteIndexStruct(
key
):Promise
<void
>
Parameters
• key: string
Returns
Promise
<void
>
Inherited from
KVIndexStore.deleteIndexStruct
Defined in
packages/llamaindex/src/storage/indexStore/KVIndexStore.ts:24
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:28
getIndexStructs()
getIndexStructs():
Promise
<IndexStruct
[]>
Returns
Promise
<IndexStruct
[]>
Inherited from
KVIndexStore.getIndexStructs
Defined in
packages/llamaindex/src/storage/indexStore/KVIndexStore.ts:44
persist()
persist(
persistPath
):Promise
<void
>
Parameters
• persistPath: string
= defaultPersistPath
Returns
Promise
<void
>
Inherited from
KVIndexStore.persist