Reference documentation and code samples for the Cloud Spanner V1 Client class CreateSessionRequest.
The request for CreateSession.
Generated from protobuf message google.spanner.v1.CreateSessionRequest
Namespace
Google \ Cloud \ Spanner \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ database |
string
Required. The database in which the new session is created. |
↳ session |
Session
Required. The session to create. |
getDatabase
Required. The database in which the new session is created.
Returns | |
---|---|
Type | Description |
string |
setDatabase
Required. The database in which the new session is created.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSession
Required. The session to create.
Returns | |
---|---|
Type | Description |
Session|null |
hasSession
clearSession
setSession
Required. The session to create.
Parameter | |
---|---|
Name | Description |
var |
Session
|
Returns | |
---|---|
Type | Description |
$this |
static::build
Parameter | |
---|---|
Name | Description |
database |
string
Required. The database in which the new session is created. Please see SpannerClient::databaseName() for help formatting this field. |
Returns | |
---|---|
Type | Description |
CreateSessionRequest |