Spanner/src/Instance.php
public function database($name, array $options = [])
    {
        return new Database(
            $this->connection,
            $this,
            $this->lroConnection,
            $this->lroCallables,
            $this->projectId,
            $name,
            isset($options['sessionPool']) ? $options['sessionPool'] : null,
            $this->returnInt64AsObject
        );
    }
public function database($name, array $options = [])
    {
        return new Database(
            $this->connection,
            $this,
            $this->lroConnection,
            $this->lroCallables,
            $this->projectId,
            $name,
            isset($options['sessionPool']) ? $options['sessionPool'] : null,
            $this->returnInt64AsObject
        );
    }
public function database ( $ name , array $ options = [ ] ) { return new Database ( $ this -> connection , $ this , $ this -> lroConnection , $ this -> lroCallables , $ this -> projectId , $ name , isset ( $ options [ 'sessionPool' ] ) ? $ options [ 'sessionPool' ] : null , $ this -> returnInt64AsObject ) ; }
Lazily instantiate a database object

Example:
```
$database = $instance->database('my-database');
```

@param string $name The database name
@param array $options [optional] {
Configuration options.

@type SessionPoolInterface $sessionPool A pool used to manage
sessions.
}
@return Database
Lazily instantiate a database object