2024-06-22 01:48:07 +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-22 01:48:07 +08:00
|
|
|
|
|
|
|
|
2024-07-07 12:18:15 +08:00
|
|
|
class OracleConfig(BaseSettings):
|
2024-06-22 01:48:07 +08:00
|
|
|
"""
|
2024-09-22 12:38:41 +07:00
|
|
|
Configuration settings for Oracle database
|
2024-06-22 01:48:07 +08:00
|
|
|
"""
|
|
|
|
|
|
|
|
ORACLE_HOST: Optional[str] = Field(
|
2024-09-22 12:38:41 +07:00
|
|
|
description="Hostname or IP address of the Oracle database server (e.g., 'localhost' or 'oracle.example.com')",
|
2024-06-22 01:48:07 +08:00
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
ORACLE_PORT: Optional[PositiveInt] = Field(
|
2024-09-22 12:38:41 +07:00
|
|
|
description="Port number on which the Oracle database server is listening (default is 1521)",
|
2024-06-26 21:01:16 +08:00
|
|
|
default=1521,
|
2024-06-22 01:48:07 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
ORACLE_USER: Optional[str] = Field(
|
2024-09-22 12:38:41 +07:00
|
|
|
description="Username for authenticating with the Oracle database",
|
2024-06-22 01:48:07 +08:00
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
ORACLE_PASSWORD: Optional[str] = Field(
|
2024-09-22 12:38:41 +07:00
|
|
|
description="Password for authenticating with the Oracle database",
|
2024-06-22 01:48:07 +08:00
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
ORACLE_DATABASE: Optional[str] = Field(
|
2024-09-22 12:38:41 +07:00
|
|
|
description="Name of the Oracle database or service to connect to (e.g., 'ORCL' or 'pdborcl')",
|
2024-06-22 01:48:07 +08:00
|
|
|
default=None,
|
|
|
|
)
|