class CreateDatabaseRequest extends Message

The request for [CreateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase].

Protobuf type Google\Spanner\Admin\Database\V1\CreateDatabaseRequest

Methods

__construct()

No description

string
getParent()

Required. The name of the instance that will serve the new database.

setParent(string $var)

Required. The name of the instance that will serve the new database.

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.

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.

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.

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.

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;

Return Value

string

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;

Parameters

string $var

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;

Return Value

string

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;

Parameters

string $var

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;

Return Value

RepeatedField

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;

Parameters

array|RepeatedField $var