oracle_config.py 727 B

1234567891011121314151617181920212223242526272829303132333435
  1. from typing import Optional
  2. from pydantic import Field, PositiveInt
  3. from pydantic_settings import BaseSettings
  4. class OracleConfig(BaseSettings):
  5. """
  6. ORACLE configs
  7. """
  8. ORACLE_HOST: Optional[str] = Field(
  9. description='ORACLE host',
  10. default=None,
  11. )
  12. ORACLE_PORT: Optional[PositiveInt] = Field(
  13. description='ORACLE port',
  14. default=1521,
  15. )
  16. ORACLE_USER: Optional[str] = Field(
  17. description='ORACLE user',
  18. default=None,
  19. )
  20. ORACLE_PASSWORD: Optional[str] = Field(
  21. description='ORACLE password',
  22. default=None,
  23. )
  24. ORACLE_DATABASE: Optional[str] = Field(
  25. description='ORACLE database',
  26. default=None,
  27. )