🚀 Try Zilliz Cloud, the fully managed Milvus, for free—experience 10x faster performance! Try Now>>

Milvus
Zilliz
< Docs
  • Java

useDatabase()

This operation changes the database in use.

public void useDatabase(String dbName)

Request Syntax

useDatabase(String dbName)

PARAMETERS

  • dbName (String) -

    The name of the target database.

RETURNS

void

EXCEPTIONS

  • InterruptedException

    This exception will be raised when any error occurs during disconnection from Milvus.

Example

client.useDatabase("my_database")

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?