Database class

Class representing a CosmosDB database.

Inheritance

Constructors

Database(Instance server, String id)

Properties

collections Collections
Provides access to collections in this Database.
latefinal
exists bool?
Flag indicating whether the database exists in CosmosDB. null if no check has been made yet.
no setter
hashCode int
The hash code for this object.
no setterinherited
id String
The document's id.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
server Instance
The server hosting this database.
final
url String
The database's base url.
final
users Users
Provides access to users in this Database.
latefinal

Methods

getInfo({Permission? permission}) Future<Map<String, dynamic>?>
Gets information for this Database.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerBuilder<T extends BaseDocument>(DocumentBuilder<T> builder) → void
toJson() Map<String, dynamic>
Serialization to a JSON map.
override
toString() String
A string representation of this object.
inherited

Operators

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