oracle_config.py 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. from typing import Optional
  2. from pydantic import Field, PositiveInt
  3. from pydantic_settings import BaseSettings
  4. class OracleConfig(BaseSettings):
  5. """
  6. Configuration settings for Oracle database
  7. """
  8. ORACLE_HOST: Optional[str] = Field(
  9. description="Hostname or IP address of the Oracle database server (e.g., 'localhost' or 'oracle.example.com')",
  10. default=None,
  11. )
  12. ORACLE_PORT: PositiveInt = Field(
  13. description="Port number on which the Oracle database server is listening (default is 1521)",
  14. default=1521,
  15. )
  16. ORACLE_USER: Optional[str] = Field(
  17. description="Username for authenticating with the Oracle database",
  18. default=None,
  19. )
  20. ORACLE_PASSWORD: Optional[str] = Field(
  21. description="Password for authenticating with the Oracle database",
  22. default=None,
  23. )
  24. ORACLE_DATABASE: Optional[str] = Field(
  25. description="Name of the Oracle database or service to connect to (e.g., 'ORCL' or 'pdborcl')",
  26. default=None,
  27. )