mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-07-17 03:41:51 +08:00
36 lines
727 B
Python
36 lines
727 B
Python
from typing import Optional
|
|
|
|
from pydantic import Field, PositiveInt
|
|
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class OracleConfig(BaseSettings):
|
|
"""
|
|
ORACLE configs
|
|
"""
|
|
|
|
ORACLE_HOST: Optional[str] = Field(
|
|
description="ORACLE host",
|
|
default=None,
|
|
)
|
|
|
|
ORACLE_PORT: Optional[PositiveInt] = Field(
|
|
description="ORACLE port",
|
|
default=1521,
|
|
)
|
|
|
|
ORACLE_USER: Optional[str] = Field(
|
|
description="ORACLE user",
|
|
default=None,
|
|
)
|
|
|
|
ORACLE_PASSWORD: Optional[str] = Field(
|
|
description="ORACLE password",
|
|
default=None,
|
|
)
|
|
|
|
ORACLE_DATABASE: Optional[str] = Field(
|
|
description="ORACLE database",
|
|
default=None,
|
|
)
|