Documentation
Technology areas
close
AI and ML
Application development
Application hosting
Compute
Data analytics and pipelines
Databases
Distributed, hybrid, and multicloud
Generative AI
Industry solutions
Networking
Observability and monitoring
Security
Storage
Cross-product tools
close
Access and resources management
Costs and usage management
Google Cloud SDK, languages, frameworks, and tools
Infrastructure as code
Migration
Related sites
close
Google Cloud Home
Free Trial and Free Tier
Architecture Center
Blog
Contact Sales
Google Cloud Developer Center
Google Developer Center
Google Cloud Marketplace
Google Cloud Marketplace Documentation
Google Cloud Skills Boost
Google Cloud Solution Center
Google Cloud Support
Google Cloud Tech Youtube Channel
/
English
Deutsch
Español – América Latina
Français
Português – Brasil
中文 – 简体
日本語
한국어
Sign in
C++
Overview
Guides
Reference
Samples
Contact Us
Start free
Documentation
Overview
Guides
Reference
Samples
Technology areas
More
Cross-product tools
More
Related sites
More
Console
Contact Us
Start free
Overview
Library reference docs
Cloud Spanner C++ Client Library
In-Depth Topics
Environment Variables
Error Handling
Override Retry, Backoff, and Re-Run Policies
Override spanner_admin::InstanceAdminClient Retry Policies
Override spanner_admin::DatabaseAdminClient Retry Policies
Override the default endpoint
Override the authentication configuration
Mocking the Cloud Spanner C++ Client with Google Mock
Modules
Spanner Client Library Configuration Options
Namespaces
google::cloud::spanner
Overview
Classes
Backup
Overview
Constructors
Backup(Backup const &)
Backup(Backup &&)
Backup(Instance, std::string)
Operators
operator=(Backup const &)
operator=(Backup &&)
operator==(Backup const &, Backup const &)
operator!=(Backup const &, Backup const &)
operator<<(std::ostream &, Backup const &)
Functions
instance() const
backup_id() const
FullName() const
Bytes
Overview
Constructors
Bytes(InputIt, InputIt)
Bytes(Container const &)
Bytes()
Operators
operator==(Bytes const &, Bytes const &)
operator!=(Bytes const &, Bytes const &)
operator<<(std::ostream &, Bytes const &)
Functions
get() const
Client
Overview
Constructors
Client(Client const &)
Client(Client &&)
Client(std::shared_ptr< Connection >, ClientOptions const &)
Client(std::shared_ptr< Connection >, std::initializer_list< internal::NonConstructible >)
Client(std::shared_ptr< Connection >, Options)
Client()
Operators
operator=(Client const &)
operator=(Client &&)
operator==(Client const &, Client const &)
operator!=(Client const &, Client const &)
Functions
Read(std::string, KeySet, std::vector< std::string >, ReadOptions const &)
Read(std::string, KeySet, std::vector< std::string >, std::initializer_list< internal::NonConstructible >)
Read(Transaction::SingleUseOptions, std::string, KeySet, std::vector< std::string >, ReadOptions const &)
Read(Transaction::SingleUseOptions, std::string, KeySet, std::vector< std::string >, std::initializer_list< internal::NonConstructible >)
Read(Transaction, std::string, KeySet, std::vector< std::string >, ReadOptions const &)
Read(Transaction, std::string, KeySet, std::vector< std::string >, std::initializer_list< internal::NonConstructible >)
PartitionRead(Transaction, std::string, KeySet, std::vector< std::string >, ReadOptions const &, PartitionOptions const &)
PartitionRead(Transaction, std::string, KeySet, std::vector< std::string >, std::initializer_list< internal::NonConstructible >)
ExecuteQuery(SqlStatement, QueryOptions const &)
ExecuteQuery(SqlStatement, std::initializer_list< internal::NonConstructible >)
ExecuteQuery(Transaction::SingleUseOptions, SqlStatement, QueryOptions const &)
ExecuteQuery(Transaction::SingleUseOptions, SqlStatement, std::initializer_list< internal::NonConstructible >)
ExecuteQuery(Transaction, SqlStatement, QueryOptions const &)
ExecuteQuery(Transaction, SqlStatement, std::initializer_list< internal::NonConstructible >)
ExecuteQuery(QueryPartition const &, QueryOptions const &)
ExecuteQuery(QueryPartition const &, std::initializer_list< internal::NonConstructible >)
ProfileQuery(SqlStatement, QueryOptions const &)
ProfileQuery(SqlStatement, std::initializer_list< internal::NonConstructible >)
ProfileQuery(Transaction::SingleUseOptions, SqlStatement, QueryOptions const &)
ProfileQuery(Transaction::SingleUseOptions, SqlStatement, std::initializer_list< internal::NonConstructible >)
ProfileQuery(Transaction, SqlStatement, QueryOptions const &)
ProfileQuery(Transaction, SqlStatement, std::initializer_list< internal::NonConstructible >)
ExecuteDml(Transaction, SqlStatement, QueryOptions const &)
ExecuteDml(Transaction, SqlStatement, std::initializer_list< internal::NonConstructible >)
ProfileDml(Transaction, SqlStatement, QueryOptions const &)
ProfileDml(Transaction, SqlStatement, std::initializer_list< internal::NonConstructible >)
AnalyzeSql(Transaction, SqlStatement, QueryOptions const &)
AnalyzeSql(Transaction, SqlStatement, std::initializer_list< internal::NonConstructible >)
ExecutePartitionedDml(SqlStatement, QueryOptions const &)
ExecutePartitionedDml(SqlStatement, std::initializer_list< internal::NonConstructible >)
PartitionQuery(Transaction, SqlStatement, PartitionOptions const &)
PartitionQuery(Transaction, SqlStatement, std::initializer_list< internal::NonConstructible >)
Commit(std::function< StatusOr< Mutations >(Transaction)> const &, std::unique_ptr< TransactionRerunPolicy >, std::unique_ptr< BackoffPolicy >, CommitOptions const &)
Commit(std::function< StatusOr< Mutations >(Transaction)> const &, std::unique_ptr< TransactionRerunPolicy >, std::unique_ptr< BackoffPolicy >, std::initializer_list< internal::NonConstructible >)
Commit(std::function< StatusOr< Mutations >(Transaction)> const &, CommitOptions const &)
Commit(std::function< StatusOr< Mutations >(Transaction)> const &, std::initializer_list< internal::NonConstructible >)
Commit(Mutations, CommitOptions const &)
Commit(Mutations, std::initializer_list< internal::NonConstructible >)
Commit(Transaction, Mutations, CommitOptions const &)
Commit(Transaction, Mutations, std::initializer_list< internal::NonConstructible >)
Read(std::string, KeySet, std::vector< std::string >, Options)
Read(Transaction::SingleUseOptions, std::string, KeySet, std::vector< std::string >, Options)
Read(Transaction, std::string, KeySet, std::vector< std::string >, Options)
Read(ReadPartition const &, Options)
PartitionRead(Transaction, std::string, KeySet, std::vector< std::string >, Options)
ExecuteQuery(SqlStatement, Options)
ExecuteQuery(Transaction::SingleUseOptions, SqlStatement, Options)
ExecuteQuery(Transaction, SqlStatement, Options)
ExecuteQuery(QueryPartition const &, Options)
ProfileQuery(SqlStatement, Options)
ProfileQuery(Transaction::SingleUseOptions, SqlStatement, Options)
ProfileQuery(Transaction, SqlStatement, Options)
PartitionQuery(Transaction, SqlStatement, Options)
ExecuteDml(Transaction, SqlStatement, Options)
ProfileDml(Transaction, SqlStatement, Options)
AnalyzeSql(Transaction, SqlStatement, Options)
ExecuteBatchDml(Transaction, std::vector< SqlStatement >, Options)
Commit(std::function< StatusOr< Mutations >(Transaction)> const &, std::unique_ptr< TransactionRerunPolicy >, std::unique_ptr< BackoffPolicy >, Options)
Commit(std::function< StatusOr< Mutations >(Transaction)> const &, Options)
Commit(Mutations, Options)
Commit(Transaction, Mutations, Options)
CommitAtLeastOnce(Transaction::ReadWriteOptions, Mutations, Options)
Rollback(Transaction, Options)
ExecutePartitionedDml(SqlStatement, Options)
ClientOptions
Overview
Constructors
ClientOptions()
ClientOptions(ClientOptions const &)
ClientOptions(ClientOptions &&)
operator Options() const
Operators
operator=(ClientOptions const &)
operator=(ClientOptions &&)
operator Options() const
operator==(ClientOptions const &, ClientOptions const &)
operator!=(ClientOptions const &, ClientOptions const &)
Functions
query_options() const
set_query_options(QueryOptions)
CommitOptions
Overview
Constructors
CommitOptions()
CommitOptions(Options const &)
operator Options() const
Operators
operator Options() const
Functions
set_return_stats(bool)
return_stats() const
set_request_priority(absl::optional< RequestPriority >)
request_priority() const
set_transaction_tag(absl::optional< std::string >)
transaction_tag() const
Connection
Overview
Constructors
CommitParams
Overview
ExecuteBatchDmlParams
Overview
ExecutePartitionedDmlParams
Overview
PartitionQueryParams
Overview
PartitionReadParams
Overview
ReadParams
Overview
RollbackParams
Overview
SqlParams
Overview
Functions
virtual options()
virtual Read(ReadParams)
virtual PartitionRead(PartitionReadParams)
virtual ExecuteQuery(SqlParams)
virtual ExecuteDml(SqlParams)
virtual ProfileQuery(SqlParams)
virtual ProfileDml(SqlParams)
virtual AnalyzeSql(SqlParams)
virtual ExecutePartitionedDml(ExecutePartitionedDmlParams)
virtual PartitionQuery(PartitionQueryParams)
virtual ExecuteBatchDml(ExecuteBatchDmlParams)
virtual Commit(CommitParams)
virtual Rollback(RollbackParams)
CreateInstanceRequestBuilder
Overview
Constructors
CreateInstanceRequestBuilder(CreateInstanceRequestBuilder const &)
CreateInstanceRequestBuilder(CreateInstanceRequestBuilder &&)
CreateInstanceRequestBuilder(Instance const &, std::string)
Operators
operator=(CreateInstanceRequestBuilder const &)
operator=(CreateInstanceRequestBuilder &&)
operator==(CreateInstanceRequestBuilder const &, CreateInstanceRequestBuilder const &)
operator!=(CreateInstanceRequestBuilder const &, CreateInstanceRequestBuilder const &)
Functions
SetDisplayName(std::string) &
SetDisplayName(std::string) &&
SetNodeCount(int) &
SetNodeCount(int) &&
SetProcessingUnits(int) &
SetProcessingUnits(int) &&
SetLabels(std::map< std::string, std::string > const &) &
SetLabels(std::map< std::string, std::string > const &) &&
Build() &
Build() &&
CustomerManagedEncryption
Overview
Constructors
CustomerManagedEncryption(KmsKeyName)
Functions
encryption_key() const
Database
Overview
Constructors
Database(Database const &)
Database(Database &&)
Database(Instance, std::string)
Database(std::string, std::string, std::string)
Operators
operator=(Database const &)
operator=(Database &&)
operator==(Database const &, Database const &)
operator!=(Database const &, Database const &)
operator<<(std::ostream &, Database const &)
Functions
instance() const
database_id() const
FullName() const
DatabaseAdminClient
Overview
Constructors
DatabaseAdminClient(ConnectionOptions const &)
DatabaseAdminClient(std::shared_ptr< DatabaseAdminConnection >)
Functions
CreateDatabase(Database, std::vector< std::string >, EncryptionConfig)
GetDatabase(Database)
GetDatabaseDdl(Database)
UpdateDatabase(Database, std::vector< std::string >)
DropDatabase(Database)
ListDatabases(Instance)
RestoreDatabase(Database, Backup const &, EncryptionConfig)
RestoreDatabase(Database, google::spanner::admin::database::v1::Backup const &, EncryptionConfig)
GetIamPolicy(Database)
SetIamPolicy(Database, google::iam::v1::Policy)
SetIamPolicy(Database const &, IamUpdater const &)
SetIamPolicy(Database const &, IamUpdater const &, std::unique_ptr< TransactionRerunPolicy >, std::unique_ptr< BackoffPolicy >)
TestIamPermissions(Database, std::vector< std::string >)
CreateBackup(Database, std::string, Timestamp, absl::optional< Timestamp >, EncryptionConfig)
CreateBackup(Database, std::string, std::chrono::system_clock::time_point)
GetBackup(Backup const &)
DeleteBackup(google::spanner::admin::database::v1::Backup const &)
DeleteBackup(Backup const &)
ListBackups(Instance, std::string)
UpdateBackupExpireTime(google::spanner::admin::database::v1::Backup const &, Timestamp)
UpdateBackupExpireTime(Backup const &, Timestamp)
UpdateBackupExpireTime(google::spanner::admin::database::v1::Backup const &, std::chrono::system_clock::time_point const &)
UpdateBackupExpireTime(Backup const &, std::chrono::system_clock::time_point const &)
ListBackupOperations(Instance, std::string)
ListDatabaseOperations(Instance, std::string)
DatabaseAdminConnection
Overview
Constructors
CreateBackupParams
Overview
CreateDatabaseParams
Overview
DeleteBackupParams
Overview
DropDatabaseParams
Overview
GetBackupParams
Overview
GetDatabaseDdlParams
Overview
GetDatabaseParams
Overview
GetIamPolicyParams
Overview
ListBackupOperationsParams
Overview
ListBackupsParams
Overview
ListDatabaseOperationsParams
Overview
ListDatabasesParams
Overview
RestoreDatabaseParams
Overview
SetIamPolicyParams
Overview
TestIamPermissionsParams
Overview
UpdateBackupParams
Overview
UpdateDatabaseParams
Overview
Functions
virtual options()
CreateDatabase(CreateDatabaseParams)
GetDatabase(GetDatabaseParams)
GetDatabaseDdl(GetDatabaseDdlParams)
UpdateDatabase(UpdateDatabaseParams)
DropDatabase(DropDatabaseParams)
ListDatabases(ListDatabasesParams)
virtual RestoreDatabase(RestoreDatabaseParams)
GetIamPolicy(GetIamPolicyParams)
SetIamPolicy(SetIamPolicyParams)
TestIamPermissions(TestIamPermissionsParams)
virtual CreateBackup(CreateBackupParams)
virtual GetBackup(GetBackupParams)
virtual DeleteBackup(DeleteBackupParams)
virtual ListBackups(ListBackupsParams)
virtual UpdateBackup(UpdateBackupParams)
virtual ListBackupOperations(ListBackupOperationsParams)
virtual ListDatabaseOperations(ListDatabaseOperationsParams)
Decimal<>
Overview
Constructors
Decimal(Decimal &&)
Decimal(Decimal const &)
Decimal()
Operators
operator=(Decimal &&)
operator=(Decimal const &)
operator==(Decimal const &, Decimal const &)
operator!=(Decimal const &, Decimal const &)
operator<<(std::ostream &, Decimal const &)
Functions
ToString() const &
ToString() &&
DefaultEncryption
Overview
DmlResult
Overview
Constructors
DmlResult()
DmlResult(std::unique_ptr< ResultSourceInterface >)
DmlResult(DmlResult &&)
Operators
operator=(DmlResult &&)
Functions
RowsModified() const
GoogleEncryption
Overview
Instance
Overview
Constructors
Instance(Instance const &)
Instance(Instance &&)
Instance(Project, std::string)
Instance(std::string, std::string)
Operators
operator=(Instance const &)
operator=(Instance &&)
operator==(Instance const &, Instance const &)
operator!=(Instance const &, Instance const &)
operator<<(std::ostream &, Instance const &)
Functions
project() const
project_id() const
instance_id() const
FullName() const
InstanceAdminClient
Overview
Constructors
InstanceAdminClient(InstanceAdminClient const &)
InstanceAdminClient(InstanceAdminClient &&)
InstanceAdminClient(std::shared_ptr< InstanceAdminConnection >)
InstanceAdminClient()
Operators
operator=(InstanceAdminClient const &)
operator=(InstanceAdminClient &&)
operator==(InstanceAdminClient const &, InstanceAdminClient const &)
operator!=(InstanceAdminClient const &, InstanceAdminClient const &)
Functions
GetInstance(Instance const &)
CreateInstance(google::spanner::admin::instance::v1::CreateInstanceRequest const &)
UpdateInstance(google::spanner::admin::instance::v1::UpdateInstanceRequest const &)
DeleteInstance(Instance const &)
GetInstanceConfig(std::string const &)
ListInstanceConfigs(std::string)
ListInstances(std::string, std::string)
GetIamPolicy(Instance const &)
SetIamPolicy(Instance const &, google::iam::v1::Policy)
SetIamPolicy(Instance const &, IamUpdater const &)
SetIamPolicy(Instance const &, IamUpdater const &, std::unique_ptr< TransactionRerunPolicy >, std::unique_ptr< BackoffPolicy >)
TestIamPermissions(Instance const &, std::vector< std::string >)
InstanceAdminConnection
Overview
Constructors
CreateInstanceParams
Overview
DeleteInstanceParams
Overview
GetIamPolicyParams
Overview
GetInstanceConfigParams
Overview
GetInstanceParams
Overview
ListInstanceConfigsParams
Overview
ListInstancesParams
Overview
SetIamPolicyParams
Overview
TestIamPermissionsParams
Overview
UpdateInstanceParams
Overview
Functions
virtual options()
GetInstance(GetInstanceParams)
CreateInstance(CreateInstanceParams)
UpdateInstance(UpdateInstanceParams)
DeleteInstance(DeleteInstanceParams)
GetInstanceConfig(GetInstanceConfigParams)
ListInstanceConfigs(ListInstanceConfigsParams)
ListInstances(ListInstancesParams)
GetIamPolicy(GetIamPolicyParams)
SetIamPolicy(SetIamPolicyParams)
TestIamPermissions(TestIamPermissionsParams)
Json
Overview
Constructors
Json(Json const &)
Json(Json &&)
operator std::string() const &
operator std::string() &&
Json()
Json(std::string)
Operators
operator=(Json const &)
operator=(Json &&)
operator std::string() const &
operator std::string() &&
JsonB
Overview
Constructors
JsonB(JsonB const &)
JsonB(JsonB &&)
operator std::string() const &
operator std::string() &&
JsonB()
JsonB(std::string)
Operators
operator=(JsonB const &)
operator=(JsonB &&)
operator std::string() const &
operator std::string() &&
KeyBound
Overview
Constructors
KeyBound(KeyBound const &)
KeyBound(KeyBound &&)
Bound
Overview
kClosed
kOpen
KeyBound()
KeyBound(Key, Bound)
Operators
operator=(KeyBound const &)
operator=(KeyBound &&)
operator==(KeyBound const &, KeyBound const &)
operator!=(KeyBound const &, KeyBound const &)
Functions
key() const &
key() &&
bound() const
Enums
Bound
Overview
kClosed
kOpen
KeySet
Overview
Constructors
KeySet()
KeySet(KeySet const &)
KeySet(KeySet &&)
Operators
operator==(KeySet const &, KeySet const &)
operator!=(KeySet const &, KeySet const &)
operator=(KeySet const &)
operator=(KeySet &&)
Functions
static All()
AddKey(Key)
AddRange(KeyBound, KeyBound)
LimitedErrorCountRetryPolicy
Overview
Constructors
LimitedErrorCountRetryPolicy(int)
LimitedErrorCountRetryPolicy(LimitedErrorCountRetryPolicy &&)
LimitedErrorCountRetryPolicy(LimitedErrorCountRetryPolicy const &)
Functions
maximum_failures() const
virtual OnFailure(Status const &)
virtual IsExhausted() const
virtual IsPermanentFailure(Status const &) const
virtual clone() const
Types
BaseType
LimitedErrorCountTransactionRerunPolicy
Overview
Constructors
LimitedErrorCountTransactionRerunPolicy(int)
LimitedErrorCountTransactionRerunPolicy(LimitedErrorCountTransactionRerunPolicy &&)
LimitedErrorCountTransactionRerunPolicy(LimitedErrorCountTransactionRerunPolicy const &)
Functions
maximum_failures() const
virtual OnFailure(Status const &)
virtual IsExhausted() const
virtual IsPermanentFailure(Status const &) const
virtual clone() const
Types
BaseType
LimitedTimeRetryPolicy
Overview
Constructors
LimitedTimeRetryPolicy(std::chrono::duration< DurationRep, DurationPeriod >)
LimitedTimeRetryPolicy(LimitedTimeRetryPolicy &&)
LimitedTimeRetryPolicy(LimitedTimeRetryPolicy const &)
Functions
maximum_duration() const
virtual clone() const
virtual OnFailure(Status const &)
virtual IsExhausted() const
virtual IsPermanentFailure(Status const &) const
Types
BaseType
LimitedTimeTransactionRerunPolicy
Overview
Constructors
LimitedTimeTransactionRerunPolicy(std::chrono::duration< DurationRep, DurationPeriod >)
LimitedTimeTransactionRerunPolicy(LimitedTimeTransactionRerunPolicy &&)
LimitedTimeTransactionRerunPolicy(LimitedTimeTransactionRerunPolicy const &)
Functions
maximum_duration() const
virtual OnFailure(Status const &)
virtual IsExhausted() const
virtual IsPermanentFailure(Status const &) const
virtual clone() const
Types
BaseType
Mutation
Overview
Constructors
Mutation()
Mutation(Mutation &&)
Mutation(Mutation const &)
Operators
operator=(Mutation &&)
operator=(Mutation const &)
operator==(Mutation const &, Mutation const &)
operator!=(Mutation const &, Mutation const &)
Functions
as_proto() &&
as_proto() const &
PrintTo(Mutation const &, std::ostream *)
ProfileDmlResult
Overview
Constructors
ProfileDmlResult()
ProfileDmlResult(std::unique_ptr< ResultSourceInterface >)
ProfileDmlResult(ProfileDmlResult &&)
Operators
operator=(ProfileDmlResult &&)
Functions
RowsModified() const
ExecutionStats() const
ExecutionPlan() const
ProfileQueryResult
Overview
Constructors
ProfileQueryResult()
ProfileQueryResult(std::unique_ptr< ResultSourceInterface >)
ProfileQueryResult(ProfileQueryResult &&)
Operators
operator=(ProfileQueryResult &&)
Functions
begin()
end()
ReadTimestamp() const
ExecutionStats() const
ExecutionPlan() const
QueryOptions
Overview
Constructors
QueryOptions()
QueryOptions(QueryOptions const &)
QueryOptions(QueryOptions &&)
QueryOptions(Options const &)
operator Options() const
Operators
operator=(QueryOptions const &)
operator=(QueryOptions &&)
operator Options() const
operator==(QueryOptions const &, QueryOptions const &)
operator!=(QueryOptions const &, QueryOptions const &)
Functions
optimizer_version() const
set_optimizer_version(absl::optional< std::string >)
optimizer_statistics_package() const
set_optimizer_statistics_package(absl::optional< std::string >)
request_priority() const
set_request_priority(absl::optional< RequestPriority >)
request_tag() const
set_request_tag(absl::optional< std::string >)
QueryPartition
Overview
Constructors
QueryPartition(QueryPartition const &)
QueryPartition(QueryPartition &&)
QueryPartition()
Operators
operator=(QueryPartition const &)
operator=(QueryPartition &&)
operator==(QueryPartition const &, QueryPartition const &)
operator!=(QueryPartition const &, QueryPartition const &)
Functions
sql_statement() const
ReadPartition
Overview
Constructors
ReadPartition(ReadPartition const &)
ReadPartition(ReadPartition &&)
ReadPartition()
Operators
operator=(ReadPartition const &)
operator=(ReadPartition &&)
operator==(ReadPartition const &, ReadPartition const &)
operator!=(ReadPartition const &, ReadPartition const &)
Functions
TableName() const
ColumnNames() const
ReadOptions() const
ResultSourceInterface
Overview
Functions
NextRow()
Metadata()
Stats() const
RetryPolicy
Overview
Functions
clone() const
OnFailure(Status const &)
OnFailure(Status const &)
IsExhausted() const
IsExhausted() const
IsPermanentFailure(Status const &) const
IsPermanentFailure(Status const &) const
Row
Overview
Constructors
Row(Row const &)
Row(Row &&)
Row()
Operators
operator=(Row const &)
operator=(Row &&)
operator==(Row const &, Row const &)
operator!=(Row const &, Row const &)
Functions
size() const
columns() const
values() const &
values() &&
get(std::size_t) const
get(std::string const &) const
get(Arg &&) const
get() const &
get() &&
RowStream
Overview
Constructors
RowStream()
RowStream(std::unique_ptr< ResultSourceInterface >)
RowStream(RowStream &&)
Operators
operator=(RowStream &&)
Functions
begin()
end()
RowsModified() const
ReadTimestamp() const
RowStreamIterator
Overview
Constructors
RowStreamIterator()
RowStreamIterator(Source)
Operators
operator*()
operator->()
operator*() const
operator->() const
operator++()
operator++(int)
operator==(RowStreamIterator const &, RowStreamIterator const &)
operator!=(RowStreamIterator const &, RowStreamIterator const &)
Types
iterator_category
value_type
difference_type
pointer
reference
const_pointer
const_reference
Source
SessionPoolOptions
Overview
Constructors
SessionPoolOptions()
Functions
EnforceConstraints(int)
set_min_sessions(int)
min_sessions() const
set_max_sessions_per_channel(int)
max_sessions_per_channel() const
set_max_idle_sessions(int)
max_idle_sessions() const
set_action_on_exhaustion(ActionOnExhaustion)
action_on_exhaustion() const
set_keep_alive_interval(std::chrono::seconds)
keep_alive_interval() const
set_labels(std::map< std::string, std::string >)
labels() const
SqlStatement
Overview
Constructors
SqlStatement()
SqlStatement(std::string)
SqlStatement(std::string, ParamType)
SqlStatement(SqlStatement const &)
SqlStatement(SqlStatement &&)
Operators
operator=(SqlStatement const &)
operator=(SqlStatement &&)
operator==(SqlStatement const &, SqlStatement const &)
operator!=(SqlStatement const &, SqlStatement const &)
operator<<(std::ostream &, SqlStatement const &)
Functions
sql() const
params() const
ParameterNames() const
GetParameter(std::string const &) const
Types
ParamType
Timestamp
Overview
Constructors
Timestamp(Timestamp &&)
Timestamp(Timestamp const &)
Timestamp()
Operators
operator<<(std::ostream &, Timestamp)
operator=(Timestamp &&)
operator=(Timestamp const &)
operator==(Timestamp const &, Timestamp const &)
operator!=(Timestamp const &, Timestamp const &)
operator<(Timestamp const &, Timestamp const &)
operator<=(Timestamp const &, Timestamp const &)
operator>=(Timestamp const &, Timestamp const &)
operator>(Timestamp const &, Timestamp const &)
Functions
get() const
Transaction
Overview
Constructors
ReadOnlyOptions
Overview
Constructors
ReadOnlyOptions()
ReadOnlyOptions(Timestamp)
ReadOnlyOptions(std::chrono::nanoseconds)
ReadWriteOptions
Overview
Constructors
ReadWriteOptions()
Functions
WithTag(absl::optional< std::string >)
SingleUseOptions
Overview
Constructors
SingleUseOptions(ReadOnlyOptions)
SingleUseOptions(Timestamp)
SingleUseOptions(std::chrono::nanoseconds)
Transaction(ReadOnlyOptions)
Transaction(ReadWriteOptions)
Transaction(Transaction const &, ReadWriteOptions)
Transaction(Transaction &&)
Transaction(Transaction const &)
Operators
operator=(Transaction &&)
operator=(Transaction const &)
operator==(Transaction const &, Transaction const &)
operator!=(Transaction const &, Transaction const &)
TransactionRerunPolicy
Overview
Functions
clone() const
OnFailure(Status const &)
OnFailure(Status const &)
IsExhausted() const
IsExhausted() const
IsPermanentFailure(Status const &) const
IsPermanentFailure(Status const &) const
TupleStream<Tuple>
Overview
Functions
begin() const
end() const
Types
iterator
TupleStreamIterator<Tuple>
Overview
Constructors
TupleStreamIterator()
TupleStreamIterator(RowStreamIterator, RowStreamIterator)
Operators
operator*()
operator->()
operator*() const
operator->() const
operator++()
operator++(int)
operator==(TupleStreamIterator const &, TupleStreamIterator const &)
operator!=(TupleStreamIterator const &, TupleStreamIterator const &)
Types
iterator_category
value_type
difference_type
pointer
reference
const_pointer
const_reference
UpdateInstanceRequestBuilder
Overview
Constructors
UpdateInstanceRequestBuilder()
UpdateInstanceRequestBuilder(UpdateInstanceRequestBuilder const &)
UpdateInstanceRequestBuilder(UpdateInstanceRequestBuilder &&)
UpdateInstanceRequestBuilder(std::string)
UpdateInstanceRequestBuilder(Instance const &)
UpdateInstanceRequestBuilder(google::spanner::admin::instance::v1::Instance)
Operators
operator=(UpdateInstanceRequestBuilder const &)
operator=(UpdateInstanceRequestBuilder &&)
operator==(UpdateInstanceRequestBuilder const &, UpdateInstanceRequestBuilder const &)
operator!=(UpdateInstanceRequestBuilder const &, UpdateInstanceRequestBuilder const &)
Functions
SetName(std::string) &
SetName(std::string) &&
SetDisplayName(std::string) &
SetDisplayName(std::string) &&
SetNodeCount(int) &
SetNodeCount(int) &&
SetProcessingUnits(int) &
SetProcessingUnits(int) &&
AddLabels(std::map< std::string, std::string > const &) &
AddLabels(std::map< std::string, std::string > const &) &&
SetLabels(std::map< std::string, std::string > const &) &
SetLabels(std::map< std::string, std::string > const &) &&
Build() &
Build() &&
Value
Overview
Constructors
Value()
Value(Value const &)
Value(Value &&)
Value(bool)
Value(std::int64_t)
Value(double)
Value(std::string)
Value(Bytes)
Value(Json)
Value(JsonB)
Value(Numeric)
Value(PgNumeric)
Value(Timestamp)
Value(CommitTimestamp)
Value(absl::CivilDay)
Value(int)
Value(char const *)
Value(absl::optional< T >)
Value(std::vector< T >)
Value(std::tuple< Ts... >)
Operators
operator=(Value const &)
operator=(Value &&)
operator==(Value const &, Value const &)
operator!=(Value const &, Value const &)
operator<<(std::ostream &, Value const &)
Functions
get() const &
get() &&
PrintTo(Value const &, std::ostream *)
Structs
BatchDmlResult
Overview
Constructors
Stats
Overview
CommitResult
Overview
CommitReturnStatsOption
Overview
Types
Type
CommitStats
Overview
CommitTimestamp
Overview
Operators
operator==(CommitTimestamp, CommitTimestamp)
operator!=(CommitTimestamp, CommitTimestamp)
ConnectionOptionsTraits
Overview
Functions
static default_endpoint()
static user_agent_prefix()
static default_num_channels()
PartitionDataBoostOption
Overview
Types
Type
PartitionedDmlResult
Overview
PartitionOptions
Overview
PartitionSizeOption
Overview
Types
Type
PartitionsMaximumOption
Overview
Types
Type
QueryOptimizerStatisticsPackageOption
Overview
Types
Type
QueryOptimizerVersionOption
Overview
Types
Type
ReadIndexNameOption
Overview
Types
Type
ReadOptions
Overview
ReadRowLimitOption
Overview
Types
Type
RequestPriorityOption
Overview
Types
Type
RequestTagOption
Overview
Types
Type
RouteToLeaderOption
Overview
Types
Type
SessionCreatorRoleOption
Overview
Types
Type
SessionPoolActionOnExhaustionOption
Overview
Types
Type
SessionPoolKeepAliveIntervalOption
Overview
Types
Type
SessionPoolLabelsOption
Overview
Types
Type
SessionPoolMaxIdleSessionsOption
Overview
Types
Type
SessionPoolMaxSessionsPerChannelOption
Overview
Types
Type
SessionPoolMinSessionsOption
Overview
Types
Type
SpannerBackoffPolicyOption
Overview
Types
Type
SpannerPollingPolicyOption
Overview
Types
Type
SpannerRetryPolicyOption
Overview
Types
Type
StreamingResumabilityBufferSizeOption
Overview
Types
Type
TransactionTagOption
Overview
Types
Type
Functions
ToInteger(Decimal< Mode > const &, int)
MakeNumeric(std::string)
MakeNumeric(double)
MakeNumeric(T, int)
MakePgNumeric(std::string)
MakePgNumeric(double)
MakePgNumeric(T, int)
MakeBackup(std::string const &)
MakeConnection(spanner::Database const &, Options)
MakeConnection(Database const &, ConnectionOptions const &, SessionPoolOptions)
MakeConnection(Database const &, ConnectionOptions const &, SessionPoolOptions, std::unique_ptr< RetryPolicy >, std::unique_ptr< BackoffPolicy >)
MakeDatabase(std::string const &)
MakeDatabaseAdminConnection(Options)
MakeDatabaseAdminConnection(ConnectionOptions const &)
MakeDatabaseAdminConnection(ConnectionOptions const &, std::unique_ptr< RetryPolicy >, std::unique_ptr< BackoffPolicy >, std::unique_ptr< PollingPolicy >)
MakeInstance(std::string const &)
MakeInstanceAdminConnection(Options)
MakeInstanceAdminConnection(ConnectionOptions const &)
MakeInstanceAdminConnection(ConnectionOptions const &, std::unique_ptr< RetryPolicy >, std::unique_ptr< BackoffPolicy >, std::unique_ptr< PollingPolicy >)
MakeKey(Ts &&...)
MakeKeyBoundClosed(Ts &&...)
MakeKeyBoundOpen(Ts &&...)
MakeInsertMutation(std::string, std::vector< std::string >, Ts &&...)
MakeUpdateMutation(std::string, std::vector< std::string >, Ts &&...)
MakeInsertOrUpdateMutation(std::string, std::vector< std::string >, Ts &&...)
MakeReplaceMutation(std::string, std::vector< std::string >, Ts &&...)
MakeDeleteMutation(std::string, KeySet)
MakeDecimal(std::string)
MakeDecimal(double)
MakeDecimal(T, int)
ToDouble(Decimal< Mode > const &)
ToOptions(PartitionOptions const &)
ToPartitionOptions(Options const &)
SerializeQueryPartition(QueryPartition const &)
DeserializeQueryPartition(std::string const &)
ToOptions(ReadOptions const &)
ToReadOptions(Options const &)
SerializeReadPartition(ReadPartition const &)
DeserializeReadPartition(std::string const &)
MakeTestRow(std::vector< std::pair< std::string, Value > >)
MakeTestRow(Ts &&...)
StreamOf(RowRange &&)
GetSingularRow(RowRange)
MakeTimestamp(absl::Time)
MakeTimestamp(protobuf::Timestamp const &)
MakeTimestamp(sys_time< Duration > const &)
MakeReadOnlyTransaction(Transaction::ReadOnlyOptions)
MakeReadWriteTransaction(Transaction::ReadWriteOptions)
MakeReadWriteTransaction(Transaction const &, Transaction::ReadWriteOptions)
MakeNullValue()
VersionMajor()
VersionMinor()
VersionPatch()
VersionPreRelease()
Version()
VersionString()
Operators
operator==(Json const &, Json const &)
operator!=(Json const &, Json const &)
operator==(JsonB const &, JsonB const &)
operator!=(JsonB const &, JsonB const &)
operator<<(std::ostream &, Json const &)
operator<<(std::ostream &, JsonB const &)
operator==(PartitionOptions const &, PartitionOptions const &)
operator!=(PartitionOptions const &, PartitionOptions const &)
operator==(ReadOptions const &, ReadOptions const &)
operator!=(ReadOptions const &, ReadOptions const &)
Enums
DecimalMode
Overview
kGoogleSQL
kPostgreSQL
ActionOnExhaustion
Overview
kBlock
kFail
RequestPriority
Overview
kLow
kMedium
kHigh
Types
Numeric
PgNumeric
BackoffPolicy
ExponentialBackoffPolicy
ConnectionOptions
ListDatabaseRange
ListBackupOperationsRange
ListDatabaseOperationsRange
ListBackupsRange
Date
EncryptionConfig
IamUpdater
ListInstancesRange
ListInstanceConfigsRange
Key
Mutations
InsertMutationBuilder
UpdateMutationBuilder
InsertOrUpdateMutationBuilder
ReplaceMutationBuilder
DeleteMutationBuilder
SpannerPolicyOptionList
SessionPoolOptionList
RequestOptionList
PollingPolicy
GenericPollingPolicy
ExecutionPlan
sys_time
TracingOptions
google::cloud::spanner_admin
Overview
Classes
DatabaseAdminClient
Overview
Constructors
DatabaseAdminClient(DatabaseAdminClient const &)
DatabaseAdminClient(DatabaseAdminClient &&)
DatabaseAdminClient(std::shared_ptr< DatabaseAdminConnection >, Options)
Operators
operator=(DatabaseAdminClient const &)
operator=(DatabaseAdminClient &&)
operator==(DatabaseAdminClient const &, DatabaseAdminClient const &)
operator!=(DatabaseAdminClient const &, DatabaseAdminClient const &)
Functions
ListDatabases(std::string const &, Options)
ListDatabases(google::spanner::admin::database::v1::ListDatabasesRequest, Options)
CreateDatabase(std::string const &, std::string const &, Options)
CreateDatabase(google::spanner::admin::database::v1::CreateDatabaseRequest const &, Options)
GetDatabase(std::string const &, Options)
GetDatabase(google::spanner::admin::database::v1::GetDatabaseRequest const &, Options)
UpdateDatabase(google::spanner::admin::database::v1::Database const &, google::protobuf::FieldMask const &, Options)
UpdateDatabase(google::spanner::admin::database::v1::UpdateDatabaseRequest const &, Options)
UpdateDatabaseDdl(std::string const &, std::vector< std::string > const &, Options)
UpdateDatabaseDdl(google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const &, Options)
DropDatabase(std::string const &, Options)
DropDatabase(google::spanner::admin::database::v1::DropDatabaseRequest const &, Options)
GetDatabaseDdl(std::string const &, Options)
GetDatabaseDdl(google::spanner::admin::database::v1::GetDatabaseDdlRequest const &, Options)
SetIamPolicy(std::string const &, google::iam::v1::Policy const &, Options)
SetIamPolicy(std::string const &, IamUpdater const &, Options)
SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &, Options)
GetIamPolicy(std::string const &, Options)
GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &, Options)
TestIamPermissions(std::string const &, std::vector< std::string > const &, Options)
TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &, Options)
CreateBackup(std::string const &, google::spanner::admin::database::v1::Backup const &, std::string const &, Options)
CreateBackup(google::spanner::admin::database::v1::CreateBackupRequest const &, Options)
CopyBackup(std::string const &, std::string const &, std::string const &, google::protobuf::Timestamp const &, Options)
CopyBackup(google::spanner::admin::database::v1::CopyBackupRequest const &, Options)
GetBackup(std::string const &, Options)
GetBackup(google::spanner::admin::database::v1::GetBackupRequest const &, Options)
UpdateBackup(google::spanner::admin::database::v1::Backup const &, google::protobuf::FieldMask const &, Options)
UpdateBackup(google::spanner::admin::database::v1::UpdateBackupRequest const &, Options)
DeleteBackup(std::string const &, Options)
DeleteBackup(google::spanner::admin::database::v1::DeleteBackupRequest const &, Options)
ListBackups(std::string const &, Options)
ListBackups(google::spanner::admin::database::v1::ListBackupsRequest, Options)
RestoreDatabase(std::string const &, std::string const &, std::string const &, Options)
RestoreDatabase(google::spanner::admin::database::v1::RestoreDatabaseRequest const &, Options)
ListDatabaseOperations(std::string const &, Options)
ListDatabaseOperations(google::spanner::admin::database::v1::ListDatabaseOperationsRequest, Options)
ListBackupOperations(std::string const &, Options)
ListBackupOperations(google::spanner::admin::database::v1::ListBackupOperationsRequest, Options)
ListDatabaseRoles(std::string const &, Options)
ListDatabaseRoles(google::spanner::admin::database::v1::ListDatabaseRolesRequest, Options)
DatabaseAdminConnection
Overview
Functions
virtual options()
virtual ListDatabases(google::spanner::admin::database::v1::ListDatabasesRequest)
virtual CreateDatabase(google::spanner::admin::database::v1::CreateDatabaseRequest const &)
virtual GetDatabase(google::spanner::admin::database::v1::GetDatabaseRequest const &)
virtual UpdateDatabase(google::spanner::admin::database::v1::UpdateDatabaseRequest const &)
virtual UpdateDatabaseDdl(google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const &)
virtual DropDatabase(google::spanner::admin::database::v1::DropDatabaseRequest const &)
virtual GetDatabaseDdl(google::spanner::admin::database::v1::GetDatabaseDdlRequest const &)
virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)
virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)
virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)
virtual CreateBackup(google::spanner::admin::database::v1::CreateBackupRequest const &)
virtual CopyBackup(google::spanner::admin::database::v1::CopyBackupRequest const &)
virtual GetBackup(google::spanner::admin::database::v1::GetBackupRequest const &)
virtual UpdateBackup(google::spanner::admin::database::v1::UpdateBackupRequest const &)
virtual DeleteBackup(google::spanner::admin::database::v1::DeleteBackupRequest const &)
virtual ListBackups(google::spanner::admin::database::v1::ListBackupsRequest)
virtual RestoreDatabase(google::spanner::admin::database::v1::RestoreDatabaseRequest const &)
virtual ListDatabaseOperations(google::spanner::admin::database::v1::ListDatabaseOperationsRequest)
virtual ListBackupOperations(google::spanner::admin::database::v1::ListBackupOperationsRequest)
virtual ListDatabaseRoles(google::spanner::admin::database::v1::ListDatabaseRolesRequest)
DatabaseAdminConnectionIdempotencyPolicy
Overview
Functions
virtual clone() const
virtual ListDatabases(google::spanner::admin::database::v1::ListDatabasesRequest)
virtual CreateDatabase(google::spanner::admin::database::v1::CreateDatabaseRequest const &)
virtual GetDatabase(google::spanner::admin::database::v1::GetDatabaseRequest const &)
virtual UpdateDatabase(google::spanner::admin::database::v1::UpdateDatabaseRequest const &)
virtual UpdateDatabaseDdl(google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const &)
virtual DropDatabase(google::spanner::admin::database::v1::DropDatabaseRequest const &)
virtual GetDatabaseDdl(google::spanner::admin::database::v1::GetDatabaseDdlRequest const &)
virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)
virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)
virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)
virtual CreateBackup(google::spanner::admin::database::v1::CreateBackupRequest const &)
virtual CopyBackup(google::spanner::admin::database::v1::CopyBackupRequest const &)
virtual GetBackup(google::spanner::admin::database::v1::GetBackupRequest const &)
virtual UpdateBackup(google::spanner::admin::database::v1::UpdateBackupRequest const &)
virtual DeleteBackup(google::spanner::admin::database::v1::DeleteBackupRequest const &)
virtual ListBackups(google::spanner::admin::database::v1::ListBackupsRequest)
virtual RestoreDatabase(google::spanner::admin::database::v1::RestoreDatabaseRequest const &)
virtual ListDatabaseOperations(google::spanner::admin::database::v1::ListDatabaseOperationsRequest)
virtual ListBackupOperations(google::spanner::admin::database::v1::ListBackupOperationsRequest)
virtual ListDatabaseRoles(google::spanner::admin::database::v1::ListDatabaseRolesRequest)
DatabaseAdminLimitedErrorCountRetryPolicy
Overview
Constructors
DatabaseAdminLimitedErrorCountRetryPolicy(int)
DatabaseAdminLimitedErrorCountRetryPolicy(DatabaseAdminLimitedErrorCountRetryPolicy &&)
DatabaseAdminLimitedErrorCountRetryPolicy(DatabaseAdminLimitedErrorCountRetryPolicy const &)
Functions
maximum_failures() const
virtual OnFailure(Status const &)
virtual IsExhausted() const
virtual IsPermanentFailure(Status const &) const
virtual clone() const
Types
BaseType
DatabaseAdminLimitedTimeRetryPolicy
Overview
Constructors
DatabaseAdminLimitedTimeRetryPolicy(std::chrono::duration< DurationRep, DurationPeriod >)
DatabaseAdminLimitedTimeRetryPolicy(DatabaseAdminLimitedTimeRetryPolicy &&)
DatabaseAdminLimitedTimeRetryPolicy(DatabaseAdminLimitedTimeRetryPolicy const &)
Functions
maximum_duration() const
virtual OnFailure(Status const &)
virtual IsExhausted() const
virtual IsPermanentFailure(Status const &) const
virtual clone() const
Types
BaseType
DatabaseAdminRetryPolicy
Overview
Functions
clone() const
OnFailure(Status const &)
OnFailure(Status const &)
IsExhausted() const
IsExhausted() const
IsPermanentFailure(Status const &) const
IsPermanentFailure(Status const &) const
InstanceAdminClient
Overview
Constructors
InstanceAdminClient(InstanceAdminClient const &)
InstanceAdminClient(InstanceAdminClient &&)
InstanceAdminClient(std::shared_ptr< InstanceAdminConnection >, Options)
Operators
operator=(InstanceAdminClient const &)
operator=(InstanceAdminClient &&)
operator==(InstanceAdminClient const &, InstanceAdminClient const &)
operator!=(InstanceAdminClient const &, InstanceAdminClient const &)
Functions
ListInstanceConfigs(std::string const &, Options)
ListInstanceConfigs(google::spanner::admin::instance::v1::ListInstanceConfigsRequest, Options)
GetInstanceConfig(std::string const &, Options)
GetInstanceConfig(google::spanner::admin::instance::v1::GetInstanceConfigRequest const &, Options)
CreateInstanceConfig(std::string const &, google::spanner::admin::instance::v1::InstanceConfig const &, std::string const &, Options)
CreateInstanceConfig(google::spanner::admin::instance::v1::CreateInstanceConfigRequest const &, Options)
UpdateInstanceConfig(google::spanner::admin::instance::v1::InstanceConfig const &, google::protobuf::FieldMask const &, Options)
UpdateInstanceConfig(google::spanner::admin::instance::v1::UpdateInstanceConfigRequest const &, Options)
DeleteInstanceConfig(std::string const &, Options)
DeleteInstanceConfig(google::spanner::admin::instance::v1::DeleteInstanceConfigRequest const &, Options)
ListInstanceConfigOperations(std::string const &, Options)
ListInstanceConfigOperations(google::spanner::admin::instance::v1::ListInstanceConfigOperationsRequest, Options)
ListInstances(std::string const &, Options)
ListInstances(google::spanner::admin::instance::v1::ListInstancesRequest, Options)
GetInstance(std::string const &, Options)
GetInstance(google::spanner::admin::instance::v1::GetInstanceRequest const &, Options)
CreateInstance(std::string const &, std::string const &, google::spanner::admin::instance::v1::Instance const &, Options)
CreateInstance(google::spanner::admin::instance::v1::CreateInstanceRequest const &, Options)
UpdateInstance(google::spanner::admin::instance::v1::Instance const &, google::protobuf::FieldMask const &, Options)
UpdateInstance(google::spanner::admin::instance::v1::UpdateInstanceRequest const &, Options)
DeleteInstance(std::string const &, Options)
DeleteInstance(google::spanner::admin::instance::v1::DeleteInstanceRequest const &, Options)
SetIamPolicy(std::string const &, google::iam::v1::Policy const &, Options)
SetIamPolicy(std::string const &, IamUpdater const &, Options)
SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &, Options)
GetIamPolicy(std::string const &, Options)
GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &, Options)
TestIamPermissions(std::string const &, std::vector< std::string > const &, Options)
TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &, Options)
InstanceAdminConnection
Overview
Functions
virtual options()
virtual ListInstanceConfigs(google::spanner::admin::instance::v1::ListInstanceConfigsRequest)
virtual GetInstanceConfig(google::spanner::admin::instance::v1::GetInstanceConfigRequest const &)