.Use()
Switch to a specific namespace and database.
Method Syntaxawait db.Use(ns, db)
Arguments | Description | ||
---|---|---|---|
namespace initially required | Switches to a specific namespace. | ||
database initially required | Switches to a specific database. | ||
cancellationToken optional | The cancellationToken enables graceful cancellation of asynchronous operations. |
await db.Use("test", "test");