15 #ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_CLIENT_H
16 #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_CLIENT_H
18 #include "google/cloud/spanner/batch_dml_result.h"
19 #include "google/cloud/spanner/client_options.h"
20 #include "google/cloud/spanner/commit_options.h"
21 #include "google/cloud/spanner/commit_result.h"
22 #include "google/cloud/spanner/connection.h"
23 #include "google/cloud/spanner/connection_options.h"
24 #include "google/cloud/spanner/database.h"
25 #include "google/cloud/spanner/keys.h"
26 #include "google/cloud/spanner/mutations.h"
27 #include "google/cloud/spanner/partition_options.h"
28 #include "google/cloud/spanner/query_options.h"
29 #include "google/cloud/spanner/query_partition.h"
30 #include "google/cloud/spanner/read_options.h"
31 #include "google/cloud/spanner/read_partition.h"
32 #include "google/cloud/spanner/results.h"
33 #include "google/cloud/spanner/retry_policy.h"
34 #include "google/cloud/spanner/session_pool_options.h"
35 #include "google/cloud/spanner/sql_statement.h"
36 #include "google/cloud/spanner/transaction.h"
37 #include "google/cloud/spanner/version.h"
38 #include "google/cloud/backoff_policy.h"
39 #include "google/cloud/optional.h"
40 #include "google/cloud/options.h"
41 #include "google/cloud/status.h"
42 #include "google/cloud/status_or.h"
43 #include <google/spanner/v1/spanner.pb.h>
44 #include <grpcpp/grpcpp.h>
132 : conn_(std::move(conn)), opts_
(std::move(opts)
) {}
148 return a.conn_ == b.conn_;
179 std::vector<std::string> columns,
189 std::string table,
KeySet keys,
190 std::vector<std::string> columns,
199 std::vector<std::string> columns,
252 std::vector<std::string> columns,
ReadOptions read_options = {},
547 std::function<StatusOr<Mutations>(
Transaction)>
const& mutator,
548 std::unique_ptr<TransactionRerunPolicy> rerun_policy,
549 std::unique_ptr<BackoffPolicy> backoff_policy,
564 std::function<StatusOr<Mutations>(
Transaction)>
const& mutator,
701 Database const& db, ConnectionOptions
const& connection_options,
720 Database const& db, ConnectionOptions
const& connection_options,
722 std::unique_ptr<RetryPolicy> retry_policy,
723 std::unique_ptr<BackoffPolicy> backoff_policy);
728 namespace spanner_internal {
734 absl::optional<std::string>
const& optimizer_version_env,
735 absl::optional<std::string>
const& optimizer_statistics_package_env);