Google Cloud AlloyDB for PostgreSQL V1alpha Client - Class Database (0.9.0)

Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1alpha Client class Database.

Message describing Database object.

Generated from protobuf message google.cloud.alloydb.v1alpha.Database

Namespace

Google \ Cloud \ AlloyDb \ V1alpha

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Identifier. Name of the resource in the form of projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}.

↳ charset string

Optional. Charset for the database. This field can contain any PostgreSQL supported charset name. Example values include "UTF8", "SQL_ASCII", etc.

↳ collation string

Optional. Collation for the database. Name of the custom or native collation for postgres. Example values include "C", "POSIX", etc

getName

Identifier. Name of the resource in the form of projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}.

Returns
TypeDescription
string

setName

Identifier. Name of the resource in the form of projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCharset

Optional. Charset for the database.

This field can contain any PostgreSQL supported charset name. Example values include "UTF8", "SQL_ASCII", etc.

Returns
TypeDescription
string

setCharset

Optional. Charset for the database.

This field can contain any PostgreSQL supported charset name. Example values include "UTF8", "SQL_ASCII", etc.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCollation

Optional. Collation for the database.

Name of the custom or native collation for postgres. Example values include "C", "POSIX", etc

Returns
TypeDescription
string

setCollation

Optional. Collation for the database.

Name of the custom or native collation for postgres. Example values include "C", "POSIX", etc

Parameter
NameDescription
var string
Returns
TypeDescription
$this