mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-15 08:38:18 +08:00
35 lines
692 B
Python
35 lines
692 B
Python
from typing import Optional
|
|
|
|
from pydantic import BaseModel, Field, PositiveInt
|
|
|
|
|
|
class OracleConfig(BaseModel):
|
|
"""
|
|
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,
|
|
)
|