Class Database (2.1.1)

Database(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A Cloud Spanner database.

Attributes

NameDescription
name str
Required. The name of the database. Values are of the form projects/, where is as specified in the CREATE DATABASE statement. This name can be passed to other API methods to identify the database.
state .spanner_database_admin.Database.State
Output only. The current database state.
create_time .timestamp.Timestamp
Output only. If exists, the time at which the database creation started.
restore_info .spanner_database_admin.RestoreInfo
Output only. Applicable only for restored databases. Contains information about the restore source.

Classes

State

State(value)

Indicates the current state of the database.