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 specified name.
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 the database does not exists, this method returns true by default. if throwOnNotFound is set to true, it will throw a NotFoundException instead. Upon success, the CosmosDbDatabase.exists flag will be set to false.
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 specified name.
openOrCreate(String name, {CosmosDbPermission? permission, CosmosDbThroughput? throughput}) Future<CosmosDbDatabase>
Opens or creates a CosmosDbDatabase with the specified name.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited