Google Cloud Spanner C++ Client
2.1.0
A C++ Client Library for Google Cloud Spanner
version.h
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
// https://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
#
ifndef
GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_VERSION_H
16
#
define
GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_VERSION_H
17
18
#
include
"google/cloud/spanner/version_info.h"
19
#
include
"google/cloud/internal/attributes.h"
20
#
include
"google/cloud/version.h"
21
#
include
<
string
>
22
23
#
define
GOOGLE_CLOUD_CPP_SPANNER_ADMIN_API_DEPRECATED
(
name
)
24
GOOGLE_CLOUD_CPP_DEPRECATED
(
25
"google::cloud::spanner::"
name
26
" is deprecated, and will be removed on or shortly after 2022-10-01."
27
" Please use google::cloud::spanner_admin::"
name
28
" instead. See GitHub issue #7356 for more information."
)
29
30
#
define
GOOGLE_CLOUD_CPP_SPANNER_MAKE_TEST_ROW_DEPRECATED
(
)
31
GOOGLE_CLOUD_CPP_DEPRECATED
(
32
"google::cloud::spanner::MakeTestRow() is deprecated, and"
33
" will be removed on or shortly after 2023-06-01. Please"
34
" use google::cloud::spanner_mocks::MakeRow() instead."
35
" See GitHub issue #9086 for more information."
)
36
37
// This preprocessor symbol is deprecated and should never be used anywhere. It
38
// exists solely for backward compatibility to avoid breaking anyone who may
39
// have been using it.
40
#
define
SPANNER_CLIENT_NS
GOOGLE_CLOUD_CPP_NS
41
42
namespace
google
{
43
/**
44
* The namespace Google Cloud Platform C++ client libraries.
45
*/
46
namespace
cloud
{
47
/**
48
* Contains all the Cloud Spanner C++ client types and functions.
49
*/
50
namespace
spanner
{
51
GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
52
/**
53
* The Cloud spanner C++ Client major version.
54
*/
55
int
constexpr
VersionMajor
() {
return
google
::
cloud
::
version_major
(
)
; }
56
57
/**
58
* The Cloud spanner C++ Client minor version.
59
*/
60
int
constexpr
VersionMinor
() {
return
google
::
cloud
::
version_minor
(
)
; }
61
62
/**
63
* The Cloud spanner C++ Client patch version.
64
*/
65
int
constexpr
VersionPatch
() {
return
google
::
cloud
::
version_patch
(
)
; }
66
67
/// A single integer representing the Major/Minor/Patch version.
68
int
constexpr
Version
() {
return
google
::
cloud
::
version
(
)
; }
69
70
/// The version as a string, in MAJOR.MINOR.PATCH+gitrev format.
71
std::string
VersionString
();
72
73
GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
74
// TODO(#7463) - remove backwards compatibility namespaces
75
namespace
v1 =
GOOGLE_CLOUD_CPP_NS
;
// NOLINT(misc-unused-alias-decls)
76
}
// namespace spanner
77
}
// namespace cloud
78
}
// namespace google
79
80
#
endif
// GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_VERSION_H
Generated on Mon Aug 1 2022 21:43:28 for Google Cloud Spanner C++ Client by
1.9.1