remove_connection()
Near Deprecation此操作根据给定别名从注册表中移除连接,并在已连接时断开连接。
请求语法
python
remove_connection(alias: str)
参数:
-
alias (string) -
[必填]
连接别名
返回类型:
NoneType
返回值:
None
异常:
-
ConnectionConfigException
当连接配置无效时,将引发此异常。
示例
python
from pymilvus import connections
connections.remove_connection(alias="default")
相关操作
以下操作与 remove_connection() 相关: