def METHOD_NAME(self) -> None:
    exceptions: list[ValidationError] = []
    sqlalchemy_uri: Optional[str] = self._properties.get("sqlalchemy_uri")
    database_name: Optional[str] = self._properties.get("database_name")
    if not sqlalchemy_uri:
        exceptions.append(DatabaseRequiredFieldValidationError("sqlalchemy_uri"))
    if not database_name:
        exceptions.append(DatabaseRequiredFieldValidationError("database_name"))
    else:
        # Check database_name uniqueness
        if not DatabaseDAO.validate_uniqueness(database_name):
            exceptions.append(DatabaseExistsValidationError())
    if exceptions:
        exception = DatabaseInvalidError()
        exception.extend(exceptions)
        event_logger.log_with_context(
            # pylint: disable=consider-using-f-string
            action="db_connection_failed.{}.{}".format(
                exception.__class__.__name__,
                ".".join(exception.get_list_classnames()),
            )
        )
        raise exception