milvus-logo
LFAI
< Docs
  • Java
    • v2

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();
Feedback

Was this page helpful?