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

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

A single value in a row from a sql result.

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

Namespace

Google \ Cloud \ AlloyDb \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ value string

The cell value represented in string format. Timestamps are converted to string using RFC3339Nano format.

↳ null_value bool

Set to true if cell value is null.

getValue

The cell value represented in string format.

Timestamps are converted to string using RFC3339Nano format.

Returns
Type Description
string

hasValue

clearValue

setValue

The cell value represented in string format.

Timestamps are converted to string using RFC3339Nano format.

Parameter
Name Description
var string
Returns
Type Description
$this

getNullValue

Set to true if cell value is null.

Returns
Type Description
bool

hasNullValue

clearNullValue

setNullValue

Set to true if cell value is null.

Parameter
Name Description
var bool
Returns
Type Description
$this