Reference documentation and code samples for the Cloud Spanner V1 Client class State.
Indicates the current state of the database.
Protobuf type google.spanner.admin.database.v1.Database.State
Methods
name
Parameter | |
---|---|
Name | Description |
value |
mixed
|
value
Parameter | |
---|---|
Name | Description |
name |
mixed
|
Constants
STATE_UNSPECIFIED
Value: 0
Not specified.
Generated from protobuf enum STATE_UNSPECIFIED = 0;
CREATING
Value: 1
The database is still being created. Operations on the database may fail
with FAILED_PRECONDITION
in this state.
Generated from protobuf enum CREATING = 1;
READY
Value: 2
The database is fully created and ready for use.
Generated from protobuf enum READY = 2;
READY_OPTIMIZING
Value: 3
The database is fully created and ready for use, but is still being optimized for performance and cannot handle full load.
In this state, the database still references the backup
it was restore from, preventing the backup
from being deleted. When optimizations are complete, the full performance
of the database will be restored, and the database will transition to
READY
state.
Generated from protobuf enum READY_OPTIMIZING = 3;