Class QueryOptions (2.12.0)

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

Constructors

QueryOptions()

QueryOptions(QueryOptions const &)

Parameter
Name Description
QueryOptions const &

QueryOptions(QueryOptions &&)

Parameter
Name Description
QueryOptions &&

QueryOptions(Options const &)

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

Parameter
Name Description
opts Options const &

Operators

operator=(QueryOptions const &)

Parameter
Name Description
QueryOptions const &
Returns
Type Description
QueryOptions &

operator=(QueryOptions &&)

Parameter
Name Description
QueryOptions &&
Returns
Type Description
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
Type Description
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
Name Description
version absl::optional< std::string >
Returns
Type Description
QueryOptions &

optimizer_statistics_package() const

Returns the optimizer statistics package.

Returns
Type Description
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
Name Description
stats_package absl::optional< std::string >
Returns
Type Description
QueryOptions &

request_priority() const

Returns the request priority.

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

set_request_priority(absl::optional< RequestPriority >)

Sets the request priority.

Parameter
Name Description
priority absl::optional< RequestPriority >
Returns
Type Description
QueryOptions &

request_tag() const

Returns the request tag.

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

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

Sets the request tag.

Parameter
Name Description
tag absl::optional< std::string >
Returns
Type Description
QueryOptions &