Google Cloud Spanner C++ Client
1.32.0
A C++ Client Library for Google Cloud Spanner
connection_options.cc
Go to the documentation of this file.
1
// Copyright 2019 Google LLC
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#
include
"google/cloud/spanner/connection_options.h"
16
#
include
"google/cloud/spanner/internal/defaults.h"
17
#
include
"google/cloud/common_options.h"
18
#
include
"google/cloud/grpc_options.h"
19
#
include
"google/cloud/internal/absl_str_join_quiet.h"
20
#
include
"google/cloud/internal/getenv.h"
21
#
include
"google/cloud/internal/user_agent_prefix.h"
22
23
namespace
google
{
24
namespace
cloud
{
25
namespace
spanner
{
26
inline
namespace
SPANNER_CLIENT_NS
{
27
28
std::string
ConnectionOptionsTraits
::
default_endpoint
() {
29
return
spanner_internal::DefaultOptions()
.
get
<
EndpointOption
>
(
)
;
30
}
31
32
std::string
ConnectionOptionsTraits
::
user_agent_prefix
() {
33
return
internal::UserAgentPrefix();
34
}
35
36
int
ConnectionOptionsTraits
::
default_num_channels
() {
37
static
auto
const
kNumChannels =
38
spanner_internal::DefaultOptions()
.
get
<
GrpcNumChannelsOption
>
(
)
;
39
return
kNumChannels;
40
}
41
42
}
// namespace SPANNER_CLIENT_NS
43
}
// namespace spanner
44
}
// namespace cloud
45
}
// namespace google
Generated on Wed Oct 6 2021 01:09:44 for Google Cloud Spanner C++ Client by
1.9.1