Google Cloud Sql Admin V1 Client - Class QueryResult (1.6.0)

Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class QueryResult.

QueryResult contains the result of executing a single SQL statement.

Generated from protobuf message google.cloud.sql.v1.QueryResult

Namespace

Google \ Cloud \ Sql \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ columns array<Column>

List of columns included in the result. This also includes the data type of the column.

↳ rows array<Row>

Rows returned by the SQL statement.

↳ message string

Message related to the SQL execution result.

↳ partial_result bool

Set to true if the SQL execution's result is truncated due to size limits or an error retrieving results.

↳ status Google\Rpc\Status

If results were truncated due to an error, details of that error.

getColumns

List of columns included in the result. This also includes the data type of the column.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setColumns

List of columns included in the result. This also includes the data type of the column.

Parameter
Name Description
var array<Column>
Returns
Type Description
$this

getRows

Rows returned by the SQL statement.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setRows

Rows returned by the SQL statement.

Parameter
Name Description
var array<Row>
Returns
Type Description
$this

getMessage

Message related to the SQL execution result.

Returns
Type Description
string

setMessage

Message related to the SQL execution result.

Parameter
Name Description
var string
Returns
Type Description
$this

getPartialResult

Set to true if the SQL execution's result is truncated due to size limits or an error retrieving results.

Returns
Type Description
bool

setPartialResult

Set to true if the SQL execution's result is truncated due to size limits or an error retrieving results.

Parameter
Name Description
var bool
Returns
Type Description
$this

getStatus

If results were truncated due to an error, details of that error.

Returns
Type Description
Google\Rpc\Status|null

hasStatus

clearStatus

setStatus

If results were truncated due to an error, details of that error.

Parameter
Name Description
var Google\Rpc\Status
Returns
Type Description
$this