Google Cloud AlloyDB for PostgreSQL V1 Client - Class SqlResult (1.1.0)

Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class SqlResult.

SqlResult represents the result for the execution of a sql statement.

Generated from protobuf message google.cloud.alloydb.v1.SqlResult

Namespace

Google \ Cloud \ AlloyDb \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ columns array<Google\Cloud\AlloyDb\V1\SqlResultColumn>

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

↳ rows array<Google\Cloud\AlloyDb\V1\SqlResultRow>

Rows returned by the SQL statement.

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<Google\Cloud\AlloyDb\V1\SqlResultColumn>
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<Google\Cloud\AlloyDb\V1\SqlResultRow>
Returns
Type Description
$this