Google Cloud Spanner C++ Client
A C++ Client Library for Google Cloud Spanner
Public Member Functions | Friends | List of all members
google::cloud::spanner::v1::QueryOptions Class Reference

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

#include <google/cloud/spanner/query_options.h>

Public Member Functions

 QueryOptions ()=default
 
 QueryOptions (QueryOptions const &)=default
 
QueryOptionsoperator= (QueryOptions const &)=default
 
 QueryOptions (QueryOptions &&)=default
 
QueryOptionsoperator= (QueryOptions &&)=default
 
optional< std::string > const & optimizer_version () const
 Returns the optimizer version. More...
 
QueryOptionsset_optimizer_version (optional< std::string > version)
 Sets the optimizerion version to the specified integer string. More...
 

Friends

bool operator== (QueryOptions const &a, QueryOptions const &b)
 
bool operator!= (QueryOptions const &a, QueryOptions const &b)
 

Detailed Description

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

Definition at line 31 of file query_options.h.

Constructor & Destructor Documentation

◆ QueryOptions() [1/3]

google::cloud::spanner::v1::QueryOptions::QueryOptions ( )
default

◆ QueryOptions() [2/3]

google::cloud::spanner::v1::QueryOptions::QueryOptions ( QueryOptions const &  )
default

◆ QueryOptions() [3/3]

google::cloud::spanner::v1::QueryOptions::QueryOptions ( QueryOptions &&  )
default

Member Function Documentation

◆ operator=() [1/2]

QueryOptions& google::cloud::spanner::v1::QueryOptions::operator= ( QueryOptions const &  )
default

◆ operator=() [2/2]

QueryOptions& google::cloud::spanner::v1::QueryOptions::operator= ( QueryOptions &&  )
default

◆ optimizer_version()

optional<std::string> const& google::cloud::spanner::v1::QueryOptions::optimizer_version ( ) const
inline

Returns the optimizer version.

Definition at line 40 of file query_options.h.

◆ set_optimizer_version()

QueryOptions& google::cloud::spanner::v1::QueryOptions::set_optimizer_version ( optional< std::string >  version)
inline

Sets the optimizerion 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.

Definition at line 49 of file query_options.h.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( QueryOptions const &  a,
QueryOptions const &  b 
)
friend

Definition at line 58 of file query_options.h.

◆ operator==

bool operator== ( QueryOptions const &  a,
QueryOptions const &  b 
)
friend

Definition at line 54 of file query_options.h.