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

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

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

hasStatus

clearStatus

setStatus

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

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: