milvus-logo
LFAI
< Docs
  • Java

listDatabases()

This operation lists all the database names.

public ListDatabasesResp listDatabases()

RETURN TYPE:

ListDatabasesResp

RETURNS:

A ListDatabasesResp object contains a list of all database names.

EXCEPTIONS:

  • MilvusClientExceptions

    This exception will be raised when any error occurs during this operation.

Example

ListDatabasesResp listDatabasesResp = client.listDatabases();
List<String> dbNames = listDatabasesResp.getDatabaseNames();

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?