跳到主要内容

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() 相关:

最低 SDK 版本Inherit