跳到主要内容

disconnect()

Near Deprecation

此操作会将客户端与指定连接断开。

请求语法​

python
disconnect(alias: str)

参数:

  • alias (string) -

    [必填]

    连接别名。

返回类型:

None

返回值:

None

异常:

  • ConnectionConfigException

    当连接配置无效时,将引发此异常。

示例​

python
from pymilvus import connections

connections.disconnect(alias="default")

以下操作与 disconnect() 相关:

最低 SDK 版本Inherit