Returns a new Database instance.
Note: the intention is to get this object from CosmosClient via client.database(id)
, not to instantiate it yourself.
Used for creating new containers, or querying/reading all containers.
Use .container(id)
to read, replace, or delete a specific, existing Database by id.
Used 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.
Read the definition of the given Database.
Generated using TypeDoc
Operations for reading or deleting an existing database.
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.