Google Cloud Datastream V1 Client - Class PostgresqlSourceConfig (2.3.0)

Reference documentation and code samples for the Google Cloud Datastream V1 Client class PostgresqlSourceConfig.

PostgreSQL data source configuration

Generated from protobuf message google.cloud.datastream.v1.PostgresqlSourceConfig

Namespace

Google \ Cloud \ Datastream \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ include_objectsPostgresqlRdbms

PostgreSQL objects to include in the stream.

↳ exclude_objectsPostgresqlRdbms

PostgreSQL objects to exclude from the stream.

↳ replication_slotstring

Required. Immutable. The name of the logical replication slot that's configured with the pgoutput plugin.

↳ publicationstring

Required. The name of the publication that includes the set of all tables that are defined in the stream's include_objects.

↳ max_concurrent_backfill_tasksint

Maximum number of concurrent backfill tasks. The number should be non negative. If not set (or set to 0), the system's default value will be used.

getIncludeObjects

PostgreSQL objects to include in the stream.

Returns
TypeDescription
PostgresqlRdbms|null

hasIncludeObjects

clearIncludeObjects

setIncludeObjects

PostgreSQL objects to include in the stream.

Parameter
NameDescription
varPostgresqlRdbms
Returns
TypeDescription
$this

getExcludeObjects

PostgreSQL objects to exclude from the stream.

Returns
TypeDescription
PostgresqlRdbms|null

hasExcludeObjects

clearExcludeObjects

setExcludeObjects

PostgreSQL objects to exclude from the stream.

Parameter
NameDescription
varPostgresqlRdbms
Returns
TypeDescription
$this

getReplicationSlot

Required. Immutable. The name of the logical replication slot that's configured with the pgoutput plugin.

Returns
TypeDescription
string

setReplicationSlot

Required. Immutable. The name of the logical replication slot that's configured with the pgoutput plugin.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getPublication

Required. The name of the publication that includes the set of all tables that are defined in the stream's include_objects.

Returns
TypeDescription
string

setPublication

Required. The name of the publication that includes the set of all tables that are defined in the stream's include_objects.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getMaxConcurrentBackfillTasks

Maximum number of concurrent backfill tasks. The number should be non negative. If not set (or set to 0), the system's default value will be used.

Returns
TypeDescription
int

setMaxConcurrentBackfillTasks

Maximum number of concurrent backfill tasks. The number should be non negative. If not set (or set to 0), the system's default value will be used.

Parameter
NameDescription
varint
Returns
TypeDescription
$this