Google Cloud Spanner C++ Client  1.32.0
A C++ Client Library for Google Cloud Spanner
Classes | Namespaces | Typedefs | Functions
mutations.h File Reference
#include "google/cloud/spanner/keys.h"
#include "google/cloud/spanner/value.h"
#include "google/cloud/spanner/version.h"
#include <google/spanner/v1/mutation.pb.h>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  google::cloud::spanner::v1::Mutation
 A wrapper for Cloud Spanner mutations. More...
 

Namespaces

 google
 
 google::cloud
 The namespace Google Cloud Platform C++ client libraries.
 
 google::cloud::spanner
 Contains all the Cloud Spanner C++ client types and functions.
 
 google::cloud::spanner::v1
 The inlined, versioned namespace for the Cloud Spanner C++ client APIs.
 

Typedefs

using google::cloud::spanner::v1::Mutations = std::vector< Mutation >
 An ordered sequence of mutations to pass to Client::Commit() or return from the Client::Commit() mutator. More...
 
using google::cloud::spanner::v1::InsertMutationBuilder = spanner_internal::WriteMutationBuilder< spanner_internal::InsertOp >
 A helper class to construct "insert" mutations. More...
 
using google::cloud::spanner::v1::UpdateMutationBuilder = spanner_internal::WriteMutationBuilder< spanner_internal::UpdateOp >
 A helper class to construct "update" mutations. More...
 
using google::cloud::spanner::v1::InsertOrUpdateMutationBuilder = spanner_internal::WriteMutationBuilder< spanner_internal::InsertOrUpdateOp >
 A helper class to construct "insert_or_update" mutations. More...
 
using google::cloud::spanner::v1::ReplaceMutationBuilder = spanner_internal::WriteMutationBuilder< spanner_internal::ReplaceOp >
 A helper class to construct "replace" mutations. More...
 
using google::cloud::spanner::v1::DeleteMutationBuilder = spanner_internal::DeleteMutationBuilder
 A helper class to construct "delete" mutations. More...
 

Functions

template<typename... Ts>
Mutation google::cloud::spanner::v1::MakeInsertMutation (std::string table_name, std::vector< std::string > columns, Ts &&... values)
 Creates a simple insert mutation for the values in values. More...
 
template<typename... Ts>
Mutation google::cloud::spanner::v1::MakeUpdateMutation (std::string table_name, std::vector< std::string > columns, Ts &&... values)
 Creates a simple update mutation for the values in values. More...
 
template<typename... Ts>
Mutation google::cloud::spanner::v1::MakeInsertOrUpdateMutation (std::string table_name, std::vector< std::string > columns, Ts &&... values)
 Creates a simple "insert or update" mutation for the values in values. More...
 
template<typename... Ts>
Mutation google::cloud::spanner::v1::MakeReplaceMutation (std::string table_name, std::vector< std::string > columns, Ts &&... values)
 Creates a simple "replace" mutation for the values in values. More...
 
Mutation google::cloud::spanner::v1::MakeDeleteMutation (std::string table_name, KeySet keys)
 Creates a simple "delete" mutation for the values in keys. More...