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

Connections

A Connections instance represents a pool of connections to your Milvus instances.

Python
class pymilvus.Connections

Constructor

Constructs a singleton instance to manage all connections.

notes

Instead of creating a new instance of this class on your own, import the existing singleton instance as shown in the following example.

Examples

Python
from pymilvus import connections

# Establish a connection
connections.connect(
uri="http://localhost:19530",
token="root:Milvus"
)

Methods

The following are the methods of the connections singleton instance: