milvus-logo
Star
0
Forks
0
快速开始

add_connection()

This method adds a Milvus connection.

Invocation

add_connection(**kwargs)

Parameters

ParameterDescriptionTypeRequired
kwargs: aliasConnection alias.StringTrue
kwargs: hostIP address of the Milvus connectionStringTrue
kwargs: portPort of the Milvus connectionIntegerTrue

Return

No return.

Raises

Example

from pymilvus import connections
connections.add_connection(
  default={"host": "localhost", "port": "19530"}
)