currentUsedDatabase()

This operation returns the name of the database currently being used by this client.

public String currentUsedDatabase()

RETURNS:

String

The name of the currently active database.

Example

String dbName = client.currentUsedDatabase();
System.out.println("Current database: " + dbName);

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?