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)
CommitAtLeastOnce(std::vector< 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
set_max_commit_delay(absl::optional< std::chrono::milliseconds >)
max_commit_delay() const
Connection
Overview
Constructors
BatchWriteParams
Overview
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)
virtual BatchWrite(BatchWriteParams)
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
ExcludeReplicas
Overview
Constructors
ExcludeReplicas(std::initializer_list< ReplicaSelection >)
Functions
replica_selections() const
GoogleEncryption
Overview
IncludeReplicas
Overview
Constructors
IncludeReplicas(std::initializer_list< ReplicaSelection >, bool)
Functions
replica_selections() const
auto_failover_disabled() const
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)
Interval
Overview
Constructors
Interval(Interval &&)
Interval(Interval const &)
operator std::string() const
Interval()
Interval(std::int32_t, std::int32_t, std::int32_t, std::chrono::nanoseconds)
Interval(std::chrono::nanoseconds)
Operators
operator<<(std::ostream &, Interval)
operator=(Interval &&)
operator=(Interval const &)
operator-() const
operator+=(Interval const &)
operator-=(Interval const &)
operator*=(double)
operator/=(double)
operator std::string() const
operator==(Interval const &, Interval const &)
operator!=(Interval const &, Interval const &)
operator<(Interval const &, Interval const &)
operator<=(Interval const &, Interval const &)
operator>=(Interval const &, Interval const &)
operator>(Interval const &, Interval const &)
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 *)
PgOid
Overview
Constructors
PgOid(PgOid const &)
PgOid(PgOid &&)
operator std::uint64_t() const
PgOid()
PgOid(std::uint64_t)
Operators
operator=(PgOid const &)
operator=(PgOid &&)
operator std::uint64_t() const
operator==(PgOid const &, PgOid const &)
operator!=(PgOid const &, PgOid const &)
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
ProtoEnum<E>
Overview
Constructors
ProtoEnum()
ProtoEnum(enum_type)
operator enum_type() const
Operators
operator==(ProtoEnum const &, ProtoEnum const &)
operator!=(ProtoEnum const &, ProtoEnum const &)
operator enum_type() const
operator<<(std::ostream &, ProtoEnum const &)
Functions
static TypeName()
Types
enum_type
ProtoMessage<M>
Overview
Constructors
ProtoMessage()
ProtoMessage(M const &)
ProtoMessage(std::string)
operator message_type() const
operator std::string() const
Operators
operator==(ProtoMessage const &, ProtoMessage const &)
operator!=(ProtoMessage const &, ProtoMessage const &)
operator message_type() const
operator std::string() const
operator<<(std::ostream &, ProtoMessage const &)
Functions
static TypeName()
Types
message_type
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
ReplicaSelection
Overview
Constructors
ReplicaSelection(std::string, ReplicaType)
ReplicaSelection(std::string)
ReplicaSelection(ReplicaType)
Functions
location() const
type() 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(float)
Value(double)
Value(std::string)
Value(Bytes)
Value(Json)
Value(JsonB)
Value(Numeric)
Value(PgNumeric)
Value(PgOid)
Value(Timestamp)
Value(CommitTimestamp)
Value(absl::CivilDay)
Value(ProtoEnum< E >)
Value(ProtoMessage< M >)
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
BatchedCommitResult
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()
DirectedReadOption
Overview
Types
Type
ExcludeTransactionFromChangeStreamsOption
Overview
Types
Type
MaxCommitDelayOption
Overview
Types
Type
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 >)
MakeInterval(absl::string_view)
JustifyDays(Interval)
JustifyHours(Interval)
JustifyInterval(Interval)
Add(Timestamp const &, Interval const &, absl::string_view)
Diff(Timestamp const &, Timestamp const &, absl::string_view)
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+(Interval, Interval)
operator-(Interval, Interval)
operator*(Interval, double)
operator*(double, Interval)
operator/(Interval, double)
operator==(Json const &, Json const &)
operator!=(Json const &, Json const &)
operator==(JsonB const &, JsonB const &)
operator!=(JsonB const &, JsonB const &)
operator==(ReplicaSelection const &, ReplicaSelection const &)
operator!=(ReplicaSelection const &, ReplicaSelection const &)
operator<<(std::ostream &, Json const &)
operator<<(std::ostream &, JsonB const &)
operator<<(std::ostream &, PgOid const &)
operator==(PartitionOptions const &, PartitionOptions const &)
operator!=(PartitionOptions const &, PartitionOptions const &)
operator==(ReadOptions const &, ReadOptions const &)
operator!=(ReadOptions const &, ReadOptions const &)
Enums
ReplicaType
Overview
kReadWrite
kReadOnly
DecimalMode
Overview
kGoogleSQL
kPostgreSQL
ActionOnExhaustion
Overview
kBlock
kFail
RequestPriority
Overview
kLow
kMedium
kHigh
Types
Numeric
PgNumeric
BackoffPolicy
ExponentialBackoffPolicy
BatchedCommitResultStream
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(NoAwaitTag, std::string const &, std::string const &, Options)
CreateDatabase(google::spanner::admin::database::v1::CreateDatabaseRequest const &, Options)
CreateDatabase(NoAwaitTag, google::spanner::admin::database::v1::CreateDatabaseRequest const &, Options)
CreateDatabase(google::longrunning::Operation 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(NoAwaitTag, google::spanner::admin::database::v1::Database const &, google::protobuf::FieldMask const &, Options)
UpdateDatabase(google::spanner::admin::database::v1::UpdateDatabaseRequest const &, Options)
UpdateDatabase(NoAwaitTag, google::spanner::admin::database::v1::UpdateDatabaseRequest const &, Options)
UpdateDatabase(google::longrunning::Operation const &, Options)
UpdateDatabaseDdl(std::string const &, std::vector< std::string > const &, Options)
UpdateDatabaseDdl(NoAwaitTag, std::string const &, std::vector< std::string > const &, Options)
UpdateDatabaseDdl(google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const &, Options)
UpdateDatabaseDdl(NoAwaitTag, google::spanner::admin::database::v1::UpdateDatabaseDdlRequest const &, Options)
UpdateDatabaseDdl(google::longrunning::Operation 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(NoAwaitTag, std::string const &, google::spanner::admin::database::v1::Backup const &, std::string const &, Options)
CreateBackup(google::spanner::admin::database::v1::CreateBackupRequest const &, Options)
CreateBackup(NoAwaitTag, google::spanner::admin::database::v1::CreateBackupRequest const &, Options)
CreateBackup(google::longrunning::Operation const &, Options)
CopyBackup(std::string const &, std::string const &, std::string const &, google::protobuf::Timestamp const &, Options)
CopyBackup(NoAwaitTag, std::string const &, std::string const &, std::string const &, google::protobuf::Timestamp const &, Options)
CopyBackup(google::spanner::admin::database::v1::CopyBackupRequest const &, Options)
CopyBackup(NoAwaitTag, google::spanner::admin::database::v1::CopyBackupRequest const &, Options)
CopyBackup(google::longrunning::Operation 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(NoAwaitTag, std::string const &, std::string const &, std::string const &, Options)
RestoreDatabase(google::spanner::admin::database::v1::RestoreDatabaseRequest const &, Options)
RestoreDatabase(NoAwaitTag, google::spanner::admin::database::v1::RestoreDatabaseRequest const &, Options)
RestoreDatabase(google::longrunning::Operation 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)
CreateBackupSchedule(std::string const &, google::spanner::admin::database::v1::BackupSchedule const &, std::string const &, Options)
CreateBackupSchedule(google::spanner::admin::database::v1::CreateBackupScheduleRequest const &, Options)
GetBackupSchedule(std::string const &, Options)
GetBackupSchedule(google::spanner::admin::database::v1::GetBackupScheduleRequest const &, Options)
UpdateBackupSchedule(google::spanner::admin::database::v1::BackupSchedule const &, google::protobuf::FieldMask const &, Options)
UpdateBackupSchedule(google::spanner::admin::database::v1::UpdateBackupScheduleRequest const &, Options)
DeleteBackupSchedule(std::string const &, Options)
DeleteBackupSchedule(google::spanner::admin::database::v1::DeleteBackupScheduleRequest const &, Options)
ListBackupSchedules(std::string const &, Options)
ListBackupSchedules(google::spanner::admin::database::v1::ListBackupSchedulesRequest, Options)
DatabaseAdminConnec