Spanner/src/Database.php
public function updateDdlBatch(array $statements, array $options = [])
    {
        $operation = $this->connection->updateDatabaseDdl($options + [
            'name' => $this->name,
            'statements' => $statements,
        ]);

        return $this->resumeOperation($operation['name'], $operation);
    }
public function updateDdlBatch(array $statements, array $options = [])
    {
        $operation = $this->connection->updateDatabaseDdl($options + [
            'name' => $this->name,
            'statements' => $statements,
        ]);

        return $this->resumeOperation($operation['name'], $operation);
    }
public function updateDdlBatch ( array $ statements , array $ options = [ ] ) { $ operation = $ this -> connection -> updateDatabaseDdl ( $ options + [ 'name' => $ this -> name , 'statements' => $ statements , ] ) ; return $ this -> resumeOperation ( $ operation [ 'name' ] , $ operation ) ; }
Update the Database schema by running a set of SQL statements.

**NOTE**: Requires `https://www.googleapis.com/auth/spanner.admin` scope.

Example:
```
$database->updateDdlBatch([
'CREATE TABLE Users (
id INT64 NOT NULL,
name STRING(100) NOT NULL,
password STRING(100) NOT NULL
) PRIMARY KEY (id)',
'CREATE TABLE Posts (
id INT64 NOT NULL,
title STRING(100) NOT NULL,
content STRING(MAX) NOT NULL
) PRIMARY KEY(id)'
]);
```

@codingStandardsIgnoreStart
@see https://cloud.google.com/spanner/docs/data-definition-language Data Definition Language
@see https://cloud.google.com/spanner/reference/rpc/google.spanner.admin.database.v1#google.spanner.admin.database.v1.UpdateDatabaseDdlRequest UpdateDDLRequest
@codingStandardsIgnoreEnd

@param string[] $statements A list of DDL statements to run against a database.
@param array $options [optional] Configuration options.
@return LongRunningOperation
Update the Database schema by running a set of SQL statements .