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

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<SqlResultColumn>

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

↳ rows array<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<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<SqlResultRow>
Returns
Type Description
$this