Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class Database.
Message describing Database object.
Generated from protobuf message google.cloud.alloydb.v1.Database
Namespace
Google \ Cloud \ AlloyDb \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Identifier. Name of the resource in the form of |
↳ 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 | |
|---|---|
| Type | Description |
string |
|
setName
Identifier. Name of the resource in the form of
projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCharset
Optional. Charset for the database.
This field can contain any PostgreSQL supported charset name. Example values include "UTF8", "SQL_ASCII", etc.
| Returns | |
|---|---|
| Type | Description |
string |
|
setCharset
Optional. Charset for the database.
This field can contain any PostgreSQL supported charset name. Example values include "UTF8", "SQL_ASCII", etc.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCollation
Optional. Collation for the database.
Name of the custom or native collation for postgres. Example values include "C", "POSIX", etc
| Returns | |
|---|---|
| Type | Description |
string |
|
setCollation
Optional. Collation for the database.
Name of the custom or native collation for postgres. Example values include "C", "POSIX", etc
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|