Class QueryOptions (2.22.0)

These QueryOptions allow users to configure features about how their SQL queries executes on the server.

Constructors

QueryOptions()

QueryOptions(QueryOptions const &)

Parameter
NameDescription
QueryOptions const &

QueryOptions(QueryOptions &&)

Parameter
NameDescription
QueryOptions &&

QueryOptions(Options const &)

Constructs from the new, recommended way to represent options of all varieties, google::cloud::Options.

Parameter
NameDescription
opts Options const &

Operators

operator=(QueryOptions const &)

Parameter
NameDescription
QueryOptions const &
Returns
TypeDescription
QueryOptions &

operator=(QueryOptions &&)

Parameter
NameDescription
QueryOptions &&
Returns
TypeDescription
QueryOptions &

operator Options() const

Converts to the new, recommended way to represent options of all varieties, google::cloud::Options.

Functions

optimizer_version() const

Returns the optimizer version.

Returns
TypeDescription
absl::optional< std::string > const &

set_optimizer_version(absl::optional< std::string >)

Sets the optimizer version to the specified integer string.

Setting to the empty string will use the database default. Use the string "latest" to use the latest available optimizer version.

Parameter
NameDescription
version absl::optional< std::string >
Returns
TypeDescription
QueryOptions &

optimizer_statistics_package() const

Returns the optimizer statistics package.

Returns
TypeDescription
absl::optional< std::string > const &

set_optimizer_statistics_package(absl::optional< std::string >)

Sets the optimizer statistics package to the specified string.

Setting to the empty string will use the database default.

Parameter
NameDescription
stats_package absl::optional< std::string >
Returns
TypeDescription
QueryOptions &

request_priority() const

Returns the request priority.

Returns
TypeDescription
absl::optional< RequestPriority > const &

set_request_priority(absl::optional< RequestPriority >)

Sets the request priority.

Parameter
NameDescription
priority absl::optional< RequestPriority >
Returns
TypeDescription
QueryOptions &

request_tag() const

Returns the request tag.

Returns
TypeDescription
absl::optional< std::string > const &

set_request_tag(absl::optional< std::string >)

Sets the request tag.

Parameter
NameDescription
tag absl::optional< std::string >
Returns
TypeDescription
QueryOptions &