2024-06-20 16:24:10 +08:00
|
|
|
from typing import Optional
|
|
|
|
|
2024-07-07 12:18:15 +08:00
|
|
|
from pydantic import Field, PositiveInt
|
|
|
|
from pydantic_settings import BaseSettings
|
2024-06-20 16:24:10 +08:00
|
|
|
|
|
|
|
|
2024-07-07 12:18:15 +08:00
|
|
|
class PGVectoRSConfig(BaseSettings):
|
2024-06-20 16:24:10 +08:00
|
|
|
"""
|
|
|
|
PGVectoRS configs
|
|
|
|
"""
|
|
|
|
|
|
|
|
PGVECTO_RS_HOST: Optional[str] = Field(
|
2024-08-23 23:46:01 +08:00
|
|
|
description="PGVectoRS host",
|
2024-06-20 16:24:10 +08:00
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
PGVECTO_RS_PORT: Optional[PositiveInt] = Field(
|
2024-08-23 23:46:01 +08:00
|
|
|
description="PGVectoRS port",
|
2024-06-26 21:01:16 +08:00
|
|
|
default=5431,
|
2024-06-20 16:24:10 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
PGVECTO_RS_USER: Optional[str] = Field(
|
2024-08-23 23:46:01 +08:00
|
|
|
description="PGVectoRS user",
|
2024-06-20 16:24:10 +08:00
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
PGVECTO_RS_PASSWORD: Optional[str] = Field(
|
2024-08-23 23:46:01 +08:00
|
|
|
description="PGVectoRS password",
|
2024-06-20 16:24:10 +08:00
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
PGVECTO_RS_DATABASE: Optional[str] = Field(
|
2024-08-23 23:46:01 +08:00
|
|
|
description="PGVectoRS database",
|
2024-06-20 16:24:10 +08:00
|
|
|
default=None,
|
|
|
|
)
|