示例#1
0
文件: monitor.py 项目: frlan/yaturl
    def get_connection_pool(self):
        """
        Return the status of the SQLAlchemy connection pool

        | **return** status (str)
        """
        connection_pool = YuDatabase.get_connection_pool()
        return connection_pool.status() if connection_pool else None
示例#2
0
    def get_connection_pool(self):
        """
        Return the status of the SQLAlchemy connection pool

        | **return** status (str)
        """
        connection_pool = YuDatabase.get_connection_pool()
        return connection_pool.status() if connection_pool else None