You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

oracle_config.py 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. from pydantic import Field
  2. from pydantic_settings import BaseSettings
  3. class OracleConfig(BaseSettings):
  4. """
  5. Configuration settings for Oracle database
  6. """
  7. ORACLE_USER: str | None = Field(
  8. description="Username for authenticating with the Oracle database",
  9. default=None,
  10. )
  11. ORACLE_PASSWORD: str | None = Field(
  12. description="Password for authenticating with the Oracle database",
  13. default=None,
  14. )
  15. ORACLE_DSN: str | None = Field(
  16. description="Oracle database connection string. For traditional database, use format 'host:port/service_name'. "
  17. "For autonomous database, use the service name from tnsnames.ora in the wallet",
  18. default=None,
  19. )
  20. ORACLE_CONFIG_DIR: str | None = Field(
  21. description="Directory containing the tnsnames.ora configuration file. Only used in thin mode connection",
  22. default=None,
  23. )
  24. ORACLE_WALLET_LOCATION: str | None = Field(
  25. description="Oracle wallet directory path containing the wallet files for secure connection",
  26. default=None,
  27. )
  28. ORACLE_WALLET_PASSWORD: str | None = Field(
  29. description="Password to decrypt the Oracle wallet, if it is encrypted",
  30. default=None,
  31. )
  32. ORACLE_IS_AUTONOMOUS: bool = Field(
  33. description="Flag indicating whether connecting to Oracle Autonomous Database",
  34. default=False,
  35. )