def get_engine(cls, current_app):
    """Proxy for compatibility with flask-debugtoolbar
        """
    databases = getattr(current_app, 'databases', None)
    if not databases:
        return None
    return databases[0].engine
