mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-17 15:13:49 +00:00
add postgres kvstoreimpl
This commit is contained in:
parent
8de845a96d
commit
726fd15dc4
3 changed files with 114 additions and 1 deletions
|
@ -43,7 +43,9 @@ async def kvstore_impl(config: KVStoreConfig) -> KVStore:
|
|||
|
||||
impl = SqliteKVStoreImpl(config)
|
||||
elif config.type == KVStoreType.postgres.value:
|
||||
raise NotImplementedError()
|
||||
from .postgres import PostgresKVStoreImpl
|
||||
|
||||
impl = PostgresKVStoreImpl(config)
|
||||
else:
|
||||
raise ValueError(f"Unknown kvstore type {config.type}")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue