Class: PostgresKVStore
Extends
Constructors
new PostgresKVStore()
new PostgresKVStore(
config
?):PostgresKVStore
Parameters
• config?
• config.connectionString?: string
• config.schemaName?: string
• config.tableName?: string
Returns
Overrides
Defined in
packages/llamaindex/src/storage/kvStore/PostgresKVStore.ts:16
Methods
client()
client():
Promise
<Client
>
Returns
Promise
<Client
>
Defined in
packages/llamaindex/src/storage/kvStore/PostgresKVStore.ts:59
delete()
delete(
key
,collection
):Promise
<boolean
>
Parameters
• key: string
• collection: string
= DEFAULT_COLLECTION
Returns
Promise
<boolean
>
Overrides
Defined in
packages/llamaindex/src/storage/kvStore/PostgresKVStore.ts:124
get()
get(
key
,collection
):Promise
<any
>
Parameters
• key: string
• collection: string
= DEFAULT_COLLECTION
Returns
Promise
<any
>
Overrides
Defined in
packages/llamaindex/src/storage/kvStore/PostgresKVStore.ts:90
getAll()
getAll(
collection
):Promise
<DataType
>
Parameters
• collection: string
= DEFAULT_COLLECTION
Returns
Promise
<DataType
>
Overrides
Defined in
packages/llamaindex/src/storage/kvStore/PostgresKVStore.ts:107
put()
put(
key
,val
,collection
):Promise
<void
>
Parameters
• key: string
• val: any
• collection: string
= DEFAULT_COLLECTION
Returns
Promise
<void
>
Overrides
Defined in
packages/llamaindex/src/storage/kvStore/PostgresKVStore.ts:63