Skip to content

Commit de4258f

Browse files
committed
[C++ SDK] Refactor version increment (#16426)
1 parent 1e69303 commit de4258f

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed

include/ydb-cpp-sdk/type_switcher.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <string>
44

55
namespace NYdb {
6-
inline namespace Dev {
6+
inline namespace V3 {
77

88
using TStringType = std::string;
99

src/client/resources/ydb_ca.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
#include <ydb-cpp-sdk/client/resources/ydb_ca.h>
44

5+
#include <src/version.h>
6+
57
namespace NYdb::inline V3 {
68

79
std::string GetRootCertificate() {
8-
return NResource::Find("ydb_root_ca_dev.pem");
10+
return NResource::Find(YDB_CERTIFICATE_FILE_KEY);
911
}
1012

1113
} // namespace NYdb

src/client/resources/ydb_resources.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#include <ydb-cpp-sdk/client/resources/ydb_resources.h>
44

5+
#include <src/version.h>
6+
57
namespace NYdb::inline V3 {
68

79
const char* YDB_AUTH_TICKET_HEADER = "x-ydb-auth-ticket";
@@ -29,7 +31,7 @@ const char* YDB_CLIENT_CAPABILITY_SESSION_BALANCER = "session-balancer";
2931

3032

3133
std::string GetSdkSemver() {
32-
return NResource::Find("ydb_sdk_version_dev.txt");
34+
return YDB_SDK_VERSION;
3335
}
3436

3537
} // namespace NYdb

src/client/resources/ydb_sdk_version.txt

-1
This file was deleted.

src/version.h

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#pragma once
2+
3+
namespace NYdb {
4+
5+
inline const char* YDB_SDK_VERSION = "3.3.0";
6+
inline const char* YDB_CERTIFICATE_FILE_KEY = "ydb_root_ca_v3.pem";
7+
8+
} // namespace NYdb

0 commit comments

Comments
 (0)