CosmosDbDatabases class
Class used to manage CosmosDbDatabases in a CosmosDbServer.
Constructors
- CosmosDbDatabases(CosmosDbServer server)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- server → CosmosDbServer
-
The hosting CosmosDbServer.
final
Methods
-
create(
String name, {CosmosDbPermission? permission, CosmosDbThroughput? throughput}) → Future< CosmosDbDatabase> -
Creates a new
CosmosDbDatabase
with the specifiedname
. -
delete(
CosmosDbDatabase database, {bool throwOnNotFound = false, CosmosDbPermission? permission}) → Future< bool> -
Deletes the specified
database
from this server. All containers and associated documents will be lost. If thedatabase
does not exists, this method returnstrue
by default. ifthrowOnNotFound
is set totrue
, it will throw a NotFoundException instead. Upon success, the CosmosDbDatabase.exists flag will be set tofalse
. -
list(
{CosmosDbPermission? permission}) → Future< Iterable< CosmosDbDatabase> > - Lists all databases from this server.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
String name, {CosmosDbPermission? permission}) → Future< CosmosDbDatabase> -
Opens an existing
CosmosDbDatabase
with the specifiedname
. -
openOrCreate(
String name, {CosmosDbPermission? permission, CosmosDbThroughput? throughput}) → Future< CosmosDbDatabase> -
Opens or creates a
CosmosDbDatabase
with the specifiedname
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited