Class ReplicaSelection (2.20.0)

The directed-read replica selector.

Callers must provide one or more of the following fields:

  • location: One of the regions within the multi-region configuration of your database.
  • type: The type of the replica.

Constructors

ReplicaSelection(std::string, ReplicaType)

Parameters
Name Description
location std::string
type ReplicaType

ReplicaSelection(std::string)

Parameter
Name Description
location std::string

ReplicaSelection(ReplicaType)

Parameter
Name Description
type ReplicaType

Functions

location() const

Returns
Type Description
absl::optional< std::string > const &

type() const

Returns
Type Description
absl::optional< ReplicaType > const &