def set_db(self, dbid: str, team: Optional[str]=None) -> str:
    'Set the connection to another database. This will reset the connection.\n\n        Parameters\n        ----------\n        dbid : str\n            Database identifer to set in the config.\n        team : str\n            Team identifer to set in the config. If not passed in, it will use the current one.\n\n        Returns\n        -------\n        str\n            The current database identifier.\n\n        Examples\n        --------\n        >>> client = WOQLClient("https://127.0.0.1:6363")\n        >>> client.set_db("database1")\n        \'database1\'\n        '
    self._check_connection(check_db=False)
    if (team is None):
        team = self.team
    return self.connect(team=team, db=dbid, remote_auth=self._remote_auth, key=self._key, user=self.user, branch=self.branch, ref=self.ref, repo=self.repo)
Set the connection to another database. This will reset the connection.

Parameters
----------
dbid : str
    Database identifer to set in the config.
team : str
    Team identifer to set in the config. If not passed in, it will use the current one.

Returns
-------
str
    The current database identifier.

Examples
--------
>>> client = WOQLClient("https://127.0.0.1:6363")
>>> client.set_db("database1")
'database1'
def set_db(self, dbid: str, team: Optional[str]=None) -> str:
    'Set the connection to another database. This will reset the connection.\n\n        Parameters\n        ----------\n        dbid : str\n            Database identifer to set in the config.\n        team : str\n            Team identifer to set in the config. If not passed in, it will use the current one.\n\n        Returns\n        -------\n        str\n            The current database identifier.\n\n        Examples\n        --------\n        >>> client = WOQLClient("https://127.0.0.1:6363")\n        >>> client.set_db("database1")\n        \'database1\'\n        '
    self._check_connection(check_db=False)
    if (team is None):
        team = self.team
    return self.connect(team=team, db=dbid, remote_auth=self._remote_auth, key=self._key, user=self.user, branch=self.branch, ref=self.ref, repo=self.repo)