(self, db)
return self._is_aurora
Tests if the instance is an AWS Aurora database and caches the result.
Tests if the instance is an AWS Aurora database and caches the result.
Tests if the instance is an AWS Aurora database and caches the result .
def _get_is_aurora(self, db):
        """
        Tests if the instance is an AWS Aurora database and caches the result.
        """
        if self._is_aurora is not None:
            return self._is_aurora

        try:
            with closing(db.cursor()) as cursor:
                cursor.execute(SQL_SERVER_ID_AWS_AURORA)
                if len(cursor.fetchall()) > 0:
                    self._is_aurora = True
                else:
                    self._is_aurora = False

        except Exception:
            self.warning(
                "Unable to determine if server is Aurora. If this is an Aurora database, some "
                "information may be unavailable: %s",
                traceback.format_exc(),
            )
            return False

        return self._is_aurora
def _get_is_aurora ( self , db ) : if self . _is_aurora is not None : return self . _is_aurora try : with closing ( db . cursor ( ) ) as cursor : cursor . execute ( SQL_SERVER_ID_AWS_AURORA ) if len ( cursor . fetchall ( ) ) > 0 : self . _is_aurora = True else : self . _is_aurora = False except Exception : self . warning ( "Unable to determine if server is Aurora. If this is an Aurora database, some " "information may be unavailable: %s" , traceback . format_exc ( ) , ) return False return self . _is_aurora