2024-06-20 16:24:10 +08:00
|
|
|
from typing import Optional
|
|
|
|
|
|
|
|
from pydantic import BaseModel, Field, PositiveInt
|
|
|
|
|
|
|
|
|
2024-06-22 18:26:38 +08:00
|
|
|
class PGVectoRSConfig(BaseModel):
|
2024-06-20 16:24:10 +08:00
|
|
|
"""
|
|
|
|
PGVectoRS configs
|
|
|
|
"""
|
|
|
|
|
|
|
|
PGVECTO_RS_HOST: Optional[str] = Field(
|
|
|
|
description='PGVectoRS host',
|
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
PGVECTO_RS_PORT: Optional[PositiveInt] = Field(
|
|
|
|
description='PGVectoRS port',
|
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
PGVECTO_RS_USER: Optional[str] = Field(
|
|
|
|
description='PGVectoRS user',
|
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
PGVECTO_RS_PASSWORD: Optional[str] = Field(
|
|
|
|
description='PGVectoRS password',
|
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
PGVECTO_RS_DATABASE: Optional[str] = Field(
|
|
|
|
description='PGVectoRS database',
|
|
|
|
default=None,
|
|
|
|
)
|