Spanner/src/Database.php
public function ddl(array $options = [])
    {
        $ddl = $this->connection->getDatabaseDDL($options + [
            'name' => $this->name
        ]);

        if (isset($ddl['statements'])) {
            return $ddl['statements'];
        }

        return [];
    }
public function ddl(array $options = [])
    {
        $ddl = $this->connection->getDatabaseDDL($options + [
            'name' => $this->name
        ]);

        if (isset($ddl['statements'])) {
            return $ddl['statements'];
        }

        return [];
    }
public function ddl ( array $ options = [ ] ) { $ ddl = $ this -> connection -> getDatabaseDDL ( $ options + [ 'name' => $ this -> name ] ) ; if ( isset ( $ ddl [ 'statements' ] ) ) { return $ ddl [ 'statements' ] ; } return [ ] ; }
Get a list of all database DDL statements.

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

Example:
```
$statements = $database->ddl();
```

@codingStandardsIgnoreStart
@see https://cloud.google.com/spanner/reference/rpc/google.spanner.admin.database.v1#getdatabaseddlrequest GetDatabaseDdlRequest
@codingStandardsIgnoreEnd

@param array $options [optional] Configuration options.
@return array
Get a list of all database DDL statements .