CreateDatabaseRequest
class CreateDatabaseRequest extends Message
The request for [CreateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase].
Protobuf type Google\Spanner\Admin\Database\V1\CreateDatabaseRequest
Methods
No description
Required. The name of the instance that will serve the new database.
Required. The name of the instance that will serve the new database.
Required. A CREATE DATABASE
statement, which specifies the ID of the
new database. The database ID must conform to the regular expression
[a-z][a-z0-9_\-]*[a-z0-9]
and be between 2 and 30 characters in length.
Required. A CREATE DATABASE
statement, which specifies the ID of the
new database. The database ID must conform to the regular expression
[a-z][a-z0-9_\-]*[a-z0-9]
and be between 2 and 30 characters in length.
An optional list of DDL statements to run inside the newly created database. Statements can create tables, indexes, etc. These statements execute atomically with the creation of the database: if there is an error in any statement, the database is not created.
An optional list of DDL statements to run inside the newly created database. Statements can create tables, indexes, etc. These statements execute atomically with the creation of the database: if there is an error in any statement, the database is not created.
Details
at line 43
__construct()
at line 55
string
getParent()
Required. The name of the instance that will serve the new database.
Values are of the form projects/<project>/instances/<instance>
.
Generated from protobuf field string parent = 1;
at line 67
setParent(string $var)
Required. The name of the instance that will serve the new database.
Values are of the form projects/<project>/instances/<instance>
.
Generated from protobuf field string parent = 1;
at line 81
string
getCreateStatement()
Required. A CREATE DATABASE
statement, which specifies the ID of the
new database. The database ID must conform to the regular expression
[a-z][a-z0-9_\-]*[a-z0-9]
and be between 2 and 30 characters in length.
Generated from protobuf field string create_statement = 2;
at line 94
setCreateStatement(string $var)
Required. A CREATE DATABASE
statement, which specifies the ID of the
new database. The database ID must conform to the regular expression
[a-z][a-z0-9_\-]*[a-z0-9]
and be between 2 and 30 characters in length.
Generated from protobuf field string create_statement = 2;
at line 109
RepeatedField
getExtraStatements()
An optional list of DDL statements to run inside the newly created database. Statements can create tables, indexes, etc. These statements execute atomically with the creation of the database: if there is an error in any statement, the database is not created.
Generated from protobuf field repeated string extra_statements = 3;
at line 123
setExtraStatements(array|RepeatedField $var)
An optional list of DDL statements to run inside the newly created database. Statements can create tables, indexes, etc. These statements execute atomically with the creation of the database: if there is an error in any statement, the database is not created.
Generated from protobuf field repeated string extra_statements = 3;