2024-07-11 15:21:59 +08:00
|
|
|
|
|
|
|
from pydantic import BaseModel, Field, PositiveInt
|
|
|
|
|
|
|
|
|
|
|
|
class MyScaleConfig(BaseModel):
|
|
|
|
"""
|
|
|
|
MyScale configs
|
|
|
|
"""
|
|
|
|
|
2024-07-19 10:57:45 +08:00
|
|
|
MYSCALE_HOST: str = Field(
|
2024-07-11 15:21:59 +08:00
|
|
|
description='MyScale host',
|
2024-07-19 10:57:45 +08:00
|
|
|
default='localhost',
|
2024-07-11 15:21:59 +08:00
|
|
|
)
|
|
|
|
|
2024-07-19 10:57:45 +08:00
|
|
|
MYSCALE_PORT: PositiveInt = Field(
|
2024-07-11 15:21:59 +08:00
|
|
|
description='MyScale port',
|
|
|
|
default=8123,
|
|
|
|
)
|
|
|
|
|
2024-07-19 10:57:45 +08:00
|
|
|
MYSCALE_USER: str = Field(
|
2024-07-11 15:21:59 +08:00
|
|
|
description='MyScale user',
|
2024-07-19 10:57:45 +08:00
|
|
|
default='default',
|
2024-07-11 15:21:59 +08:00
|
|
|
)
|
|
|
|
|
2024-07-19 10:57:45 +08:00
|
|
|
MYSCALE_PASSWORD: str = Field(
|
2024-07-11 15:21:59 +08:00
|
|
|
description='MyScale password',
|
2024-07-19 10:57:45 +08:00
|
|
|
default='',
|
2024-07-11 15:21:59 +08:00
|
|
|
)
|
|
|
|
|
2024-07-19 10:57:45 +08:00
|
|
|
MYSCALE_DATABASE: str = Field(
|
2024-07-11 15:21:59 +08:00
|
|
|
description='MyScale database name',
|
2024-07-19 10:57:45 +08:00
|
|
|
default='default',
|
2024-07-11 15:21:59 +08:00
|
|
|
)
|
|
|
|
|
2024-07-19 10:57:45 +08:00
|
|
|
MYSCALE_FTS_PARAMS: str = Field(
|
2024-07-11 15:21:59 +08:00
|
|
|
description='MyScale fts index parameters',
|
2024-07-19 10:57:45 +08:00
|
|
|
default='',
|
2024-07-11 15:21:59 +08:00
|
|
|
)
|