Database class

Database

Implemented types

Constructors

Database({required String $id, required String name, required String $createdAt, required String $updatedAt, required bool enabled, required DatabaseType type, DatabaseStatus? status, String? engine, String? specification, int? replicas, String? error, String? containerStatus, String? lifecycleState, List<BackupPolicy>? policies, List<BackupArchive>? archives})
Database.fromMap(Map<String, dynamic> map)
factory

Properties

$createdAt → String
Database creation date in ISO 8601 format.
final
$id → String
Database ID.
final
$updatedAt → String
Database update date in ISO 8601 format.
final
archives → List<BackupArchive>?
Database backup archives.
final
containerStatus → String?
Container status of the dedicated backing: active or inactive. Null when the database has no dedicated backing or the runtime has not reported one.
final
enabled → bool
If database is enabled. Can be 'enabled' or 'disabled'. When disabled, the database is inaccessible to users, but remains accessible to Server SDKs using API keys.
final
engine → String?
Underlying engine of the dedicated backing: postgresql, mysql, or mongodb. A managed product (tablesdb, documentsdb, vectorsdb) reports the engine it runs on, so its type and engine can differ. Null when the database has no dedicated backing.
final
error → String?
Error message when the dedicated backing failed. Null when the database has no dedicated backing or has not failed.
final
hashCode → int
The hash code for this object.
no setterinherited
lifecycleState → String?
Idle-lifecycle state of the dedicated backing: active, warm, cold, or hibernated. Null when the database has no dedicated backing or the runtime has not reported one.
final
name → String
Database name.
final
policies → List<BackupPolicy>?
Database backup policies.
final
replicas → int?
Number of secondary high availability replicas, excluding the primary. Null when backing configuration is unavailable.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
specification → String?
Compute specification identifier of the dedicated backing, e.g. s-2vcpu-2gb. Null when the database has no dedicated backing.
final
status → DatabaseStatus?
Dedicated database lifecycle status. Null when the database has no valid dedicated backing.
final
type → DatabaseType
Database type.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
override
toString() → String
A string representation of this object.
inherited

Operators

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