Package version:
Returns a new Database instance.
Note: the intention is to get this object from CosmosClient via client.database(id), not to instantiate it yourself.
ReadonlyclientReadonlycontainersUsed for creating new containers, or querying/reading all containers.
Use .database(id) to read, replace, or delete a specific, existing Database by id.
ReadonlyidReadonlyusersUsed for creating new users, or querying/reading all users.
Use .user(id) to read, replace, or delete a specific, existing User by id.
Returns a reference URL to the resource. Used for linking in Permissions.
Delete the given Database.
Optionaloptions: RequestOptionsRead the definition of the given Database.
Optionaloptions: RequestOptionsGets offer on database. If none exists, returns an OfferResponse with undefined.
Operations for reading or deleting an existing database.
See
Databases for creating new databases, and reading/querying all databases; use
client.databases.Note: all these operations make calls against a fixed budget. You should design your system such that these calls scale sublinearly with your application. For instance, do not call
database.read()before every singleitem.read()call, to ensure the database exists; do this once on application start up.