Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class SqlInstancesExecuteSqlResponse.
Execute SQL statements response.
Generated from protobuf message google.cloud.sql.v1.SqlInstancesExecuteSqlResponse
Namespace
Google \ Cloud \ Sql \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ messages |
array<SqlInstancesExecuteSqlResponse\Message>
A list of notices and warnings generated during query execution. For PostgreSQL, this includes all notices and warnings. For MySQL, this includes warnings generated by the last executed statement. To retrieve all warnings for a multi-statement query, |
↳ metadata |
Metadata
The additional metadata information regarding the execution of the SQL statements. |
↳ results |
array<QueryResult>
The list of results after executing all the SQL statements. |
↳ status |
Google\Rpc\Status
Contains the error from the database if the SQL execution failed. |
getMessages
A list of notices and warnings generated during query execution.
For PostgreSQL, this includes all notices and warnings.
For MySQL, this includes warnings generated by the last executed statement.
To retrieve all warnings for a multi-statement query, SHOW WARNINGS must
be executed after each statement.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setMessages
A list of notices and warnings generated during query execution.
For PostgreSQL, this includes all notices and warnings.
For MySQL, this includes warnings generated by the last executed statement.
To retrieve all warnings for a multi-statement query, SHOW WARNINGS must
be executed after each statement.
| Parameter | |
|---|---|
| Name | Description |
var |
array<SqlInstancesExecuteSqlResponse\Message>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMetadata
The additional metadata information regarding the execution of the SQL statements.
| Returns | |
|---|---|
| Type | Description |
Metadata|null |
|
hasMetadata
clearMetadata
setMetadata
The additional metadata information regarding the execution of the SQL statements.
| Parameter | |
|---|---|
| Name | Description |
var |
Metadata
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getResults
The list of results after executing all the SQL statements.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setResults
The list of results after executing all the SQL statements.
| Parameter | |
|---|---|
| Name | Description |
var |
array<QueryResult>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getStatus
Contains the error from the database if the SQL execution failed.
| Returns | |
|---|---|
| Type | Description |
Google\Rpc\Status|null |
|
hasStatus
clearStatus
setStatus
Contains the error from the database if the SQL execution failed.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Rpc\Status
|
| Returns | |
|---|---|
| Type | Description |
$this |
|