Database class

A Cloud Spanner database.

Constructors

Database({String? createTime, String? databaseDialect, String? defaultLeader, String? earliestVersionTime, bool? enableDropProtection, EncryptionConfig? encryptionConfig, List<EncryptionInfo>? encryptionInfo, String? name, QuorumInfo? quorumInfo, bool? reconciling, RestoreInfo? restoreInfo, String? state, String? versionRetentionPeriod})
Database.fromJson(Map json_)

Properties

createTime String?
If exists, the time at which the database creation started.
getter/setter pair
databaseDialect String?
The dialect of the Cloud Spanner Database.
getter/setter pair
defaultLeader String?
The read-write region which contains the database's leader replicas.
getter/setter pair
earliestVersionTime String?
Earliest timestamp at which older versions of the data can be read.
getter/setter pair
enableDropProtection bool?
Whether drop protection is enabled for this database.
getter/setter pair
encryptionConfig EncryptionConfig?
For databases that are using customer managed encryption, this field contains the encryption configuration for the database.
getter/setter pair
encryptionInfo List<EncryptionInfo>?
For databases that are using customer managed encryption, this field contains the encryption information for the database, such as all Cloud KMS key versions that are in use.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
name String?
The name of the database.
getter/setter pair
quorumInfo QuorumInfo?
Applicable only for databases that use dual region instance configurations.
getter/setter pair
reconciling bool?
If true, the database is being updated.
getter/setter pair
restoreInfo RestoreInfo?
Applicable only for restored databases.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String?
The current database state.
getter/setter pair
versionRetentionPeriod String?
The period in which Cloud Spanner retains all versions of data for the database.
getter/setter pair

Methods

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

Operators

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