CosmosDbServer class
Class representing a CosmosDB instance.
- Available Extensions
Constructors
- CosmosDbServer(String urlOrAccount, {String? masterKey, Client? httpClient, RetryOptions? retryOptions, bool multipleWriteLocations = false, bool preview = false})
-
Builds a new Cosmos DB CosmosDbServer with the provided
urlOrAccount
,masterKey
andhttpClient
.urlOrAccount
can be a full URL (eg.https://localhost:8081/
) or the Azure CosmosDB account name, in which case the url will be constructed ashttps://${urlOrAccount}.documents.azure.com/
. Passing themasterKey
is discouraged in client apps to prevent from theft; instead, a proxy should be implemented in order to protect the master key.
Properties
- databases → CosmosDbDatabases
-
Provides access to databases in this CosmosDbServer.
latefinal
- features → Features
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- version → String
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited