def connect(self, connection_config=None, *args, **kwargs):
        """
        connect to the interface

        this will set the raw db connection to self.connection

        *args -- anything you want that will help the db connect
        **kwargs -- anything you want that the backend db connection will need to actually connect
        """
        if self.connected: return self.connected

        if connection_config: self.connection_config = connection_config

        self.connected = True
        try:
            self._connect(self.connection_config)

        except Exception as e:
            self.connected = False
            self.raise_error(e)

        self.log("Connected {}", self.connection_config.interface_name)
        return self.connected
def connect ( self , connection_config = None , * args , ** kwargs ) : if self . connected : return self . connected if connection_config : self . connection_config = connection_config self . connected = True try : self . _connect ( self . connection_config ) except Exception as e : self . connected = False self . raise_error ( e ) self . log ( "Connected {}" , self . connection_config . interface_name ) return self . connected
connect to the interface

        this will set the raw db connection to self.connection

        *args -- anything you want that will help the db connect
        **kwargs -- anything you want that the backend db connection will need to actually connect