跳到主要内容
版本:v2.5.x

close()

This operation closes the current Milvus client.

Request syntax

Python
close() -> None

PARAMETERS:

None

RETURN TYPE:

NoneType

RETURNS:

None

Exceptions:

None

Examples

Python
from pymilvus import MilvusClient

# 1. Set up a milvus client
client = MilvusClient(
uri="http://localhost:19530",
token="root:Milvus"
)

# 2. Close the client
client.close()