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

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

Contains the name and datatype of a column in a SQL Result.

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

Namespace

Google \ Cloud \ AlloyDb \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Name of the column.

↳ type string

Datatype of the column as reported by the postgres driver. Common type names are "VARCHAR", "TEXT", "NVARCHAR", "DECIMAL", "BOOL", "INT", and "BIGINT".

getName

Name of the column.

Returns
Type Description
string

setName

Name of the column.

Parameter
Name Description
var string
Returns
Type Description
$this

getType

Datatype of the column as reported by the postgres driver.

Common type names are "VARCHAR", "TEXT", "NVARCHAR", "DECIMAL", "BOOL", "INT", and "BIGINT".

Returns
Type Description
string

setType

Datatype of the column as reported by the postgres driver.

Common type names are "VARCHAR", "TEXT", "NVARCHAR", "DECIMAL", "BOOL", "INT", and "BIGINT".

Parameter
Name Description
var string
Returns
Type Description
$this