Skip to content

Commit 4f48ecf

Browse files
authored
Change C++ SDK namespace from V3 to Dev (#15478)
1 parent b212757 commit 4f48ecf

File tree

296 files changed

+454
-385
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

296 files changed

+454
-385
lines changed

ydb/core/base/appdata_fwd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ namespace NMonitoring {
114114
class TBusNgMonPage;
115115
}
116116

117-
namespace NYdb::inline V3 {
117+
namespace NYdb::inline Dev {
118118
class TDriver;
119119
}
120120

ydb/core/persqueue/events/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <ydb/public/api/protos/persqueue_error_codes_v1.pb.h>
2323
#include <util/generic/maybe.h>
2424

25-
namespace NYdb::inline V3 {
25+
namespace NYdb::inline Dev {
2626
class ICredentialsProviderFactory;
2727
}
2828

ydb/library/arrow_parquet/result_set_parquet_printer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <string>
77

88
namespace NYdb {
9-
inline namespace V3 {
9+
inline namespace Dev {
1010
class TResultSet;
1111
}
1212

ydb/library/backup/backup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class TRegExMatch;
1111

1212
namespace NYdb {
1313

14-
inline namespace V3 {
14+
inline namespace Dev {
1515
class TDriver;
1616
class TResultSetParser;
1717
class TValue;

ydb/public/lib/idx_test/idx_test_common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <ydb-cpp-sdk/client/table/table.h>
44

55
using namespace NYdb;
6-
using namespace NYdb::V3::NTable;
6+
using namespace NYdb::Dev::NTable;
77

88
namespace NIdxTest {
99

ydb/public/lib/ydb_cli/commands/topic_operations_scenario.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
class TLogBackend;
1616
class TLog;
1717

18-
namespace NYdb::inline V3 {
18+
namespace NYdb::inline Dev {
1919

2020
class TDriver;
2121
class TParams;
2222

2323
}
2424

25-
namespace NYdb::inline V3::NTable {
25+
namespace NYdb::inline Dev::NTable {
2626

2727
class TSession;
2828
class TTableClient;

ydb/public/lib/ydb_cli/commands/ydb_common.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@
66
namespace NYdb {
77
namespace NConsoleClient {
88

9-
inline void ThrowOnError(const NYdb::V3::TOperation& operation) {
9+
inline void ThrowOnError(const NYdb::Dev::TOperation& operation) {
1010
if (!operation.Ready())
1111
return;
1212
NStatusHelpers::ThrowOnError(operation.Status());
1313
}
1414

15-
inline bool ThrowOnErrorAndCheckEOS(NYdb::V3::TStreamPartStatus status) {
15+
inline bool ThrowOnErrorAndCheckEOS(NYdb::Dev::TStreamPartStatus status) {
1616
if (!status.IsSuccess()) {
1717
if (status.EOS()) {
1818
return true;
1919
}
20-
throw NStatusHelpers::TYdbErrorException(status) << static_cast<NYdb::V3::TStatus>(status);
20+
throw NStatusHelpers::TYdbErrorException(status) << static_cast<NYdb::Dev::TStatus>(status);
2121
} else if (status.GetIssues()) {
22-
Cerr << static_cast<NYdb::V3::TStatus>(status);
22+
Cerr << static_cast<NYdb::Dev::TStatus>(status);
2323
}
2424
return false;
2525
}

ydb/public/lib/ydb_cli/commands/ydb_ping.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace NYdb {
99

10-
inline namespace V3 {
10+
inline namespace Dev {
1111
namespace NQuery {
1212
class TQueryClient;
1313
class TSession;

ydb/public/lib/ydb_cli/commands/ydb_sdk_core_access.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <ydb/public/sdk/cpp/src/client/types/core_facility/core_facility.h>
44
#include <memory>
55

6-
namespace NYdb::inline V3 {
6+
namespace NYdb::inline Dev {
77
class TDriver;
88
}
99

ydb/public/lib/ydb_cli/common/aws.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <util/generic/maybe.h>
88
#include <util/system/env.h>
99

10-
namespace NYdb::inline V3::NImport {
10+
namespace NYdb::inline Dev::NImport {
1111
struct TImportFromS3Settings;
1212
}
1313

ydb/public/lib/ydb_cli/common/sys.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace NYdb {
44

5-
inline namespace V3 {
5+
inline namespace Dev {
66
namespace NScheme {
77
struct TSchemeEntry;
88
}

ydb/public/lib/ydb_cli/dump/dump.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class TLog;
1212

1313
namespace NYdb {
1414

15-
inline namespace V3 {
15+
inline namespace Dev {
1616
class TDriver;
1717
}
1818

ydb/public/lib/ydb_cli/import/import.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
namespace NYdb {
1818

19-
inline namespace V3 {
19+
inline namespace Dev {
2020
class TDriver;
2121

2222
namespace NOperation {

ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/cms/cms.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Ydb::Cms {
2121
class ScaleRecommenderPolicies_ScaleRecommenderPolicy_TargetTrackingPolicy;
2222
} // namespace Ydb::Cms
2323

24-
namespace NYdb::inline V3::NCms {
24+
namespace NYdb::inline Dev::NCms {
2525

2626
struct TListDatabasesSettings : public TOperationRequestSettings<TListDatabasesSettings> {};
2727

@@ -210,4 +210,4 @@ class TCmsClient {
210210
std::shared_ptr<TImpl> Impl_;
211211
};
212212

213-
} // namespace NYdb::inline V3::NCms
213+
} // namespace NYdb::inline Dev::NCms

ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/common_client/settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include <optional>
1010

11-
namespace NYdb::inline V3 {
11+
namespace NYdb::inline Dev {
1212

1313
using TCertificateAndPrivateKey = std::pair<std::string, std::string>;
1414

ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/common_client/ssl_credentials.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include <string>
44

5-
namespace NYdb::inline V3 {
5+
namespace NYdb::inline Dev {
66

77
struct TSslCredentials {
88
bool IsEnabled = false;

ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/config/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <memory>
1010
#include <string>
1111

12-
namespace NYdb::inline V3::NConfig {
12+
namespace NYdb::inline Dev::NConfig {
1313

1414
struct TReplaceConfigSettings : public NYdb::TOperationRequestSettings<TReplaceConfigSettings> {
1515
FLUENT_SETTING_FLAG(DryRun);

ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/coordination/coordination.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Coordination {
1212
}
1313
}
1414

15-
namespace NYdb::inline V3 {
15+
namespace NYdb::inline Dev {
1616

1717
namespace NScheme {
1818
struct TPermissions;

ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/datastreams/datastreams.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#include <ydb/public/api/grpc/draft/ydb_datastreams_v1.pb.h>
66

7-
namespace NYdb::inline V3::NDataStreams::V1 {
7+
namespace NYdb::inline Dev::NDataStreams::V1 {
88

99
template<class TProtoResult>
1010
class TProtoResultWrapper : public NYdb::TStatus {

ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/debug/client.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

5-
namespace NYdb::inline V3::NDebug {
5+
namespace NYdb::inline Dev::NDebug {
66

77
////////////////////////////////////////////////////////////////////////////////
88

@@ -96,4 +96,4 @@ class TDebugClient {
9696
std::shared_ptr<TImpl> Impl_;
9797
};
9898

99-
} // namespace NYdb::V3::NDebug
99+
} // namespace NYdb::NDebug

ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/discovery/discovery.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Discovery {
1212
} // namespace Discovery
1313
} // namespace Ydb
1414

15-
namespace NYdb::inline V3 {
15+
namespace NYdb::inline Dev {
1616
namespace NDiscovery {
1717

1818
////////////////////////////////////////////////////////////////////////////////

ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/draft/ydb_dynamic_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include <memory>
1010

11-
namespace NYdb::inline V3::NDynamicConfig {
11+
namespace NYdb::inline Dev::NDynamicConfig {
1212

1313
struct TGetConfigResult : public TStatus {
1414
TGetConfigResult(

ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/draft/ydb_replication.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ namespace Ydb::Replication {
1414
class DescribeReplicationResult_Stats;
1515
}
1616

17-
namespace NYdb::inline V3 {
17+
namespace NYdb::inline Dev {
1818
class TProtoAccessor;
1919
}
2020

21-
namespace NYdb::inline V3::NReplication {
21+
namespace NYdb::inline Dev::NReplication {
2222

2323
class TDescribeReplicationResult;
2424
using TAsyncDescribeReplicationResult = NThreading::TFuture<TDescribeReplicationResult>;
@@ -163,7 +163,7 @@ class TReplicationDescription {
163163
};
164164

165165
class TDescribeReplicationResult: public NScheme::TDescribePathResult {
166-
friend class NYdb::V3::TProtoAccessor;
166+
friend class NYdb::TProtoAccessor;
167167
const Ydb::Replication::DescribeReplicationResult& GetProto() const;
168168

169169
public:
@@ -188,4 +188,4 @@ class TReplicationClient {
188188
std::shared_ptr<TImpl> Impl_;
189189
};
190190

191-
} // namespace NYdb::V3::NReplication
191+
} // namespace NYdb::NReplication

ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/draft/ydb_scripting.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <ydb-cpp-sdk/client/table/table.h>
44
#include <ydb/public/api/protos/ydb_query.pb.h>
55

6-
namespace NYdb::inline V3 {
6+
namespace NYdb::inline Dev {
77
namespace NScripting {
88

99
class TExecuteYqlResult : public TStatus {

ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/draft/ydb_view.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ namespace Ydb::View {
77
class DescribeViewResult;
88
}
99

10-
namespace NYdb::inline V3 {
10+
namespace NYdb::inline Dev {
1111
class TProtoAccessor;
1212
}
1313

14-
namespace NYdb::inline V3::NView {
14+
namespace NYdb::inline Dev::NView {
1515

1616
class TDescribeViewResult;
1717
using TAsyncDescribeViewResult = NThreading::TFuture<TDescribeViewResult>;
@@ -31,7 +31,7 @@ class TViewDescription {
3131
};
3232

3333
class TDescribeViewResult : public NScheme::TDescribePathResult {
34-
friend class NYdb::V3::TProtoAccessor;
34+
friend class NYdb::TProtoAccessor;
3535
const Ydb::View::DescribeViewResult& GetProto() const;
3636

3737
public:
@@ -55,4 +55,4 @@ class TViewClient {
5555
std::shared_ptr<TImpl> Impl_;
5656
};
5757

58-
} // namespace NYdb::V3::NView
58+
} // namespace NYdb::NView

ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/driver/driver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
////////////////////////////////////////////////////////////////////////////////
1515

16-
namespace NYdb::inline V3 {
16+
namespace NYdb::inline Dev {
1717

1818
class TGRpcConnectionsImpl;
1919

ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/driver/fwd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
namespace NYdb::inline V3 {
3+
namespace NYdb::inline Dev {
44

55
class TDriver;
66
class TDriverConfig;

ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/export/export.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <ydb-cpp-sdk/client/types/operation/operation.h>
55
#include <ydb-cpp-sdk/client/types/s3_settings.h>
66

7-
namespace NYdb::inline V3 {
7+
namespace NYdb::inline Dev {
88
namespace NExport {
99

1010
/// Common

ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/extension_common/extension.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class ListEndpointsResult;
1212
}
1313
}
1414

15-
namespace NYdb::inline V3 {
15+
namespace NYdb::inline Dev {
1616

1717
class IExtensionApi {
1818
public:

ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/extensions/discovery_mutator/discovery_mutator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include <ydb-cpp-sdk/client/extension_common/extension.h>
44

5-
namespace NDiscoveryMutator::inline V3 {
5+
namespace NDiscoveryMutator::inline Dev {
66

77
class TDiscoveryMutator: public NYdb::IExtension {
88
public:

ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/extensions/solomon_stats/pull_client.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <library/cpp/monlib/service/pages/mon_page.h>
99
#include <library/cpp/monlib/service/monservice.h>
1010

11-
namespace NSolomonStatExtension::inline V3 {
11+
namespace NSolomonStatExtension::inline Dev {
1212

1313
class TSolomonStatPullExtension: public NYdb::IExtension {
1414
public:

ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/extensions/solomon_stats/pull_connector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#include <library/cpp/monlib/metrics/metric_registry.h>
66

7-
namespace NSolomonStatExtension::inline V3 {
7+
namespace NSolomonStatExtension::inline Dev {
88

99
template <typename TMetricRegistryPtr>
1010
class TMetricRegistryConnector: public NYdb::IExtension {

ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/federated_topic/federated_topic.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include <unordered_set>
1010

11-
namespace NYdb::inline V3::NFederatedTopic {
11+
namespace NYdb::inline Dev::NFederatedTopic {
1212

1313
using NTopic::TPrintable;
1414
using TDbInfo = Ydb::FederationDiscovery::DatabaseInfo;
@@ -525,7 +525,7 @@ class TFederatedTopicClient {
525525

526526
} // namespace NYdb::NFederatedTopic
527527

528-
namespace NYdb::inline V3::NTopic {
528+
namespace NYdb::inline Dev::NTopic {
529529

530530
using namespace NFederatedTopic;
531531

ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/helpers/helpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

5-
namespace NYdb::inline V3 {
5+
namespace NYdb::inline Dev {
66

77
//! Checks the following environment variables and creates TDriverConfig with the first appeared:
88
//! YDB_SERVICE_ACCOUNT_KEY_FILE_CREDENTIALS=<path-to-file> — service account key file,

ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/iam/iam.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include "common/types.h"
44

5-
namespace NYdb::inline V3 {
5+
namespace NYdb::inline Dev {
66

77
/// Acquire an IAM token using a local metadata service on a virtual machine.
88
TCredentialsProviderFactoryPtr CreateIamCredentialsProviderFactory(const TIamHost& params = {});

0 commit comments

Comments
 (0)