Option for google::cloud::Options to indicate which replicas or regions should be used for reads/queries in read-only or single-use transactions.
Use of DirectedReadOptions within a read-write transaction will result in a kInvalidArgument error.
The IncludeReplicas variant lists the replicas to try (in order) to process the request, and what to do if the list is exhausted without finding a healthy replica.
Alternately, the ExcludeReplicas variant lists replicas that should be excluded from serving the request.
Type Aliases
Type
Alias Of: absl::variant< absl::monostate, IncludeReplicas, ExcludeReplicas >
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-14 UTC."],[[["The page provides documentation for the `DirectedReadOption` in the Google Cloud Spanner C++ library, specifically for version 2.27.0 and other versions."],["`DirectedReadOption` is used with `google::cloud::Options` to specify which replicas or regions to use for read-only or single-use transactions."],["Using `DirectedReadOption` within a read-write transaction will result in an error."],["There are two variants available, `IncludeReplicas` to list the replicas to use, and `ExcludeReplicas` to list the replicas to avoid."],["The page includes a list of past versions, all the way back to 2.11.0, and the most recent release candidate version, which is currently 2.37.0-rc."]]],[]]