(self, db_key, db_name=None, key_prefix=None)
return conn.cursor()
Return a cursor to execute query against the db
        Cursor are cached in the self.connections dict
Return a cursor to execute query against the db
        Cursor are cached in the self.connections dict
Return a cursor to execute query against the db Cursor are cached in the self . connections dict
def get_cursor(self, db_key, db_name=None, key_prefix=None):
        """
        Return a cursor to execute query against the db
        Cursor are cached in the self.connections dict
        """
        conn_key = self._conn_key(db_key, db_name, key_prefix)
        try:
            conn = self._conns[conn_key]
        except KeyError:
            # We catch KeyError to avoid leaking the auth info used to compose the key
            # FIXME: we should find a better way to compute unique keys to map opened connections other than
            # using auth info in clear text!
            raise SQLConnectionError("Cannot find an opened connection for host: {}".format(self.instance.get('host')))
        return conn.cursor()
def get_cursor ( self , db_key , db_name = None , key_prefix = None ) : conn_key = self . _conn_key ( db_key , db_name , key_prefix ) try : conn = self . _conns [ conn_key ] except KeyError : # We catch KeyError to avoid leaking the auth info used to compose the key # FIXME: we should find a better way to compute unique keys to map opened connections other than # using auth info in clear text! raise SQLConnectionError ( "Cannot find an opened connection for host: {}" . format ( self . instance . get ( 'host' ) ) ) return conn . cursor ( )