Skip to content

Commit 355d006

Browse files
committed
impl(bigtable): merge client and connection options
1 parent a3f8ffb commit 355d006

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

google/cloud/bigtable/client.h

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,16 @@
1515
#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_CLIENT_H
1616
#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_CLIENT_H
1717

18+
#include "google/cloud/bigtable/bound_query.h"
1819
#include "google/cloud/bigtable/data_connection.h"
20+
#include "google/cloud/bigtable/instance_resource.h"
21+
#include "google/cloud/bigtable/prepared_query.h"
22+
#include "google/cloud/bigtable/sql_statement.h"
23+
#include "google/cloud/bigtable/version.h"
24+
#include "google/cloud/future.h"
25+
#include "google/cloud/options.h"
26+
#include "google/cloud/status_or.h"
27+
#include <memory>
1928

2029
namespace google {
2130
namespace cloud {
@@ -81,7 +90,9 @@ class Client {
8190
* @param opts Unused for now
8291
*/
8392
explicit Client(std::shared_ptr<DataConnection> conn, Options opts = {})
84-
: conn_(std::move(conn)), opts_(std::move(opts)) {}
93+
: conn_(std::move(conn)),
94+
opts_(google::cloud::internal::MergeOptions(std::move(opts),
95+
conn_->options())) {}
8596

8697
/**
8798
* Prepares a query for future execution.

0 commit comments

Comments
 (0)