Skip to main content

Class: PostgresKVStore

Extends

Constructors

new PostgresKVStore()

new PostgresKVStore(config?): PostgresKVStore

Parameters

config?: PostgresKVStoreConfig

Returns

PostgresKVStore

Overrides

BaseKVStore.constructor

Defined in

packages/llamaindex/src/storage/kvStore/PostgresKVStore.ts:45

Methods

client()

client(): Promise<ClientBase>

Returns

Promise<ClientBase>

Defined in

packages/llamaindex/src/storage/kvStore/PostgresKVStore.ts:95


delete()

delete(key, collection): Promise<boolean>

Parameters

key: string

collection: string = DEFAULT_COLLECTION

Returns

Promise<boolean>

Overrides

BaseKVStore.delete

Defined in

packages/llamaindex/src/storage/kvStore/PostgresKVStore.ts:157


get()

get(key, collection): Promise<any>

Parameters

key: string

collection: string = DEFAULT_COLLECTION

Returns

Promise<any>

Overrides

BaseKVStore.get

Defined in

packages/llamaindex/src/storage/kvStore/PostgresKVStore.ts:126


getAll()

getAll(collection): Promise<DataType>

Parameters

collection: string = DEFAULT_COLLECTION

Returns

Promise<DataType>

Overrides

BaseKVStore.getAll

Defined in

packages/llamaindex/src/storage/kvStore/PostgresKVStore.ts:140


put()

put(key, val, collection): Promise<void>

Parameters

key: string

val: StoredValue

collection: string = DEFAULT_COLLECTION

Returns

Promise<void>

Overrides

BaseKVStore.put

Defined in

packages/llamaindex/src/storage/kvStore/PostgresKVStore.ts:99