Skip to content

Change C++ SDK namespace from V3 to Dev #15478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ydb/core/base/appdata_fwd.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ namespace NMonitoring {
class TBusNgMonPage;
}

namespace NYdb::inline V3 {
namespace NYdb::inline Dev {
class TDriver;
}

Expand Down
2 changes: 1 addition & 1 deletion ydb/core/persqueue/events/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <ydb/public/api/protos/persqueue_error_codes_v1.pb.h>
#include <util/generic/maybe.h>

namespace NYdb::inline V3 {
namespace NYdb::inline Dev {
class ICredentialsProviderFactory;
}

Expand Down
2 changes: 1 addition & 1 deletion ydb/library/arrow_parquet/result_set_parquet_printer.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <string>

namespace NYdb {
inline namespace V3 {
inline namespace Dev {
class TResultSet;
}

Expand Down
2 changes: 1 addition & 1 deletion ydb/library/backup/backup.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class TRegExMatch;

namespace NYdb {

inline namespace V3 {
inline namespace Dev {
class TDriver;
class TResultSetParser;
class TValue;
Expand Down
2 changes: 1 addition & 1 deletion ydb/public/lib/idx_test/idx_test_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <ydb-cpp-sdk/client/table/table.h>

using namespace NYdb;
using namespace NYdb::V3::NTable;
using namespace NYdb::Dev::NTable;

namespace NIdxTest {

Expand Down
4 changes: 2 additions & 2 deletions ydb/public/lib/ydb_cli/commands/topic_operations_scenario.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
class TLogBackend;
class TLog;

namespace NYdb::inline V3 {
namespace NYdb::inline Dev {

class TDriver;
class TParams;

}

namespace NYdb::inline V3::NTable {
namespace NYdb::inline Dev::NTable {

class TSession;
class TTableClient;
Expand Down
8 changes: 4 additions & 4 deletions ydb/public/lib/ydb_cli/commands/ydb_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
namespace NYdb {
namespace NConsoleClient {

inline void ThrowOnError(const NYdb::V3::TOperation& operation) {
inline void ThrowOnError(const NYdb::Dev::TOperation& operation) {
if (!operation.Ready())
return;
NStatusHelpers::ThrowOnError(operation.Status());
}

inline bool ThrowOnErrorAndCheckEOS(NYdb::V3::TStreamPartStatus status) {
inline bool ThrowOnErrorAndCheckEOS(NYdb::Dev::TStreamPartStatus status) {
if (!status.IsSuccess()) {
if (status.EOS()) {
return true;
}
throw NStatusHelpers::TYdbErrorException(status) << static_cast<NYdb::V3::TStatus>(status);
throw NStatusHelpers::TYdbErrorException(status) << static_cast<NYdb::Dev::TStatus>(status);
} else if (status.GetIssues()) {
Cerr << static_cast<NYdb::V3::TStatus>(status);
Cerr << static_cast<NYdb::Dev::TStatus>(status);
}
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion ydb/public/lib/ydb_cli/commands/ydb_ping.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace NYdb {

inline namespace V3 {
inline namespace Dev {
namespace NQuery {
class TQueryClient;
class TSession;
Expand Down
2 changes: 1 addition & 1 deletion ydb/public/lib/ydb_cli/commands/ydb_sdk_core_access.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <ydb/public/sdk/cpp/src/client/types/core_facility/core_facility.h>
#include <memory>

namespace NYdb::inline V3 {
namespace NYdb::inline Dev {
class TDriver;
}

Expand Down
2 changes: 1 addition & 1 deletion ydb/public/lib/ydb_cli/common/aws.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <util/generic/maybe.h>
#include <util/system/env.h>

namespace NYdb::inline V3::NImport {
namespace NYdb::inline Dev::NImport {
struct TImportFromS3Settings;
}

Expand Down
2 changes: 1 addition & 1 deletion ydb/public/lib/ydb_cli/common/sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace NYdb {

inline namespace V3 {
inline namespace Dev {
namespace NScheme {
struct TSchemeEntry;
}
Expand Down
2 changes: 1 addition & 1 deletion ydb/public/lib/ydb_cli/dump/dump.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TLog;

namespace NYdb {

inline namespace V3 {
inline namespace Dev {
class TDriver;
}

Expand Down
2 changes: 1 addition & 1 deletion ydb/public/lib/ydb_cli/import/import.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

namespace NYdb {

inline namespace V3 {
inline namespace Dev {
class TDriver;

namespace NOperation {
Expand Down
4 changes: 2 additions & 2 deletions ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/cms/cms.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace Ydb::Cms {
class ScaleRecommenderPolicies_ScaleRecommenderPolicy_TargetTrackingPolicy;
} // namespace Ydb::Cms

namespace NYdb::inline V3::NCms {
namespace NYdb::inline Dev::NCms {

struct TListDatabasesSettings : public TOperationRequestSettings<TListDatabasesSettings> {};

Expand Down Expand Up @@ -210,4 +210,4 @@ class TCmsClient {
std::shared_ptr<TImpl> Impl_;
};

} // namespace NYdb::inline V3::NCms
} // namespace NYdb::inline Dev::NCms
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <optional>

namespace NYdb::inline V3 {
namespace NYdb::inline Dev {

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <string>

namespace NYdb::inline V3 {
namespace NYdb::inline Dev {

struct TSslCredentials {
bool IsEnabled = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <memory>
#include <string>

namespace NYdb::inline V3::NConfig {
namespace NYdb::inline Dev::NConfig {

struct TReplaceConfigSettings : public NYdb::TOperationRequestSettings<TReplaceConfigSettings> {
FLUENT_SETTING_FLAG(DryRun);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Coordination {
}
}

namespace NYdb::inline V3 {
namespace NYdb::inline Dev {

namespace NScheme {
struct TPermissions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

namespace NYdb::inline V3::NDataStreams::V1 {
namespace NYdb::inline Dev::NDataStreams::V1 {

template<class TProtoResult>
class TProtoResultWrapper : public NYdb::TStatus {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

namespace NYdb::inline V3::NDebug {
namespace NYdb::inline Dev::NDebug {

////////////////////////////////////////////////////////////////////////////////

Expand Down Expand Up @@ -96,4 +96,4 @@ class TDebugClient {
std::shared_ptr<TImpl> Impl_;
};

} // namespace NYdb::V3::NDebug
} // namespace NYdb::NDebug
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Discovery {
} // namespace Discovery
} // namespace Ydb

namespace NYdb::inline V3 {
namespace NYdb::inline Dev {
namespace NDiscovery {

////////////////////////////////////////////////////////////////////////////////
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <memory>

namespace NYdb::inline V3::NDynamicConfig {
namespace NYdb::inline Dev::NDynamicConfig {

struct TGetConfigResult : public TStatus {
TGetConfigResult(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ namespace Ydb::Replication {
class DescribeReplicationResult_Stats;
}

namespace NYdb::inline V3 {
namespace NYdb::inline Dev {
class TProtoAccessor;
}

namespace NYdb::inline V3::NReplication {
namespace NYdb::inline Dev::NReplication {

class TDescribeReplicationResult;
using TAsyncDescribeReplicationResult = NThreading::TFuture<TDescribeReplicationResult>;
Expand Down Expand Up @@ -163,7 +163,7 @@ class TReplicationDescription {
};

class TDescribeReplicationResult: public NScheme::TDescribePathResult {
friend class NYdb::V3::TProtoAccessor;
friend class NYdb::TProtoAccessor;
const Ydb::Replication::DescribeReplicationResult& GetProto() const;

public:
Expand All @@ -188,4 +188,4 @@ class TReplicationClient {
std::shared_ptr<TImpl> Impl_;
};

} // namespace NYdb::V3::NReplication
} // namespace NYdb::NReplication
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <ydb-cpp-sdk/client/table/table.h>
#include <ydb/public/api/protos/ydb_query.pb.h>

namespace NYdb::inline V3 {
namespace NYdb::inline Dev {
namespace NScripting {

class TExecuteYqlResult : public TStatus {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ namespace Ydb::View {
class DescribeViewResult;
}

namespace NYdb::inline V3 {
namespace NYdb::inline Dev {
class TProtoAccessor;
}

namespace NYdb::inline V3::NView {
namespace NYdb::inline Dev::NView {

class TDescribeViewResult;
using TAsyncDescribeViewResult = NThreading::TFuture<TDescribeViewResult>;
Expand All @@ -31,7 +31,7 @@ class TViewDescription {
};

class TDescribeViewResult : public NScheme::TDescribePathResult {
friend class NYdb::V3::TProtoAccessor;
friend class NYdb::TProtoAccessor;
const Ydb::View::DescribeViewResult& GetProto() const;

public:
Expand All @@ -55,4 +55,4 @@ class TViewClient {
std::shared_ptr<TImpl> Impl_;
};

} // namespace NYdb::V3::NView
} // namespace NYdb::NView
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

////////////////////////////////////////////////////////////////////////////////

namespace NYdb::inline V3 {
namespace NYdb::inline Dev {

class TGRpcConnectionsImpl;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

namespace NYdb::inline V3 {
namespace NYdb::inline Dev {

class TDriver;
class TDriverConfig;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <ydb-cpp-sdk/client/types/operation/operation.h>
#include <ydb-cpp-sdk/client/types/s3_settings.h>

namespace NYdb::inline V3 {
namespace NYdb::inline Dev {
namespace NExport {

/// Common
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ListEndpointsResult;
}
}

namespace NYdb::inline V3 {
namespace NYdb::inline Dev {

class IExtensionApi {
public:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

namespace NDiscoveryMutator::inline V3 {
namespace NDiscoveryMutator::inline Dev {

class TDiscoveryMutator: public NYdb::IExtension {
public:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <library/cpp/monlib/service/pages/mon_page.h>
#include <library/cpp/monlib/service/monservice.h>

namespace NSolomonStatExtension::inline V3 {
namespace NSolomonStatExtension::inline Dev {

class TSolomonStatPullExtension: public NYdb::IExtension {
public:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

namespace NSolomonStatExtension::inline V3 {
namespace NSolomonStatExtension::inline Dev {

template <typename TMetricRegistryPtr>
class TMetricRegistryConnector: public NYdb::IExtension {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <unordered_set>

namespace NYdb::inline V3::NFederatedTopic {
namespace NYdb::inline Dev::NFederatedTopic {

using NTopic::TPrintable;
using TDbInfo = Ydb::FederationDiscovery::DatabaseInfo;
Expand Down Expand Up @@ -525,7 +525,7 @@ class TFederatedTopicClient {

} // namespace NYdb::NFederatedTopic

namespace NYdb::inline V3::NTopic {
namespace NYdb::inline Dev::NTopic {

using namespace NFederatedTopic;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

namespace NYdb::inline V3 {
namespace NYdb::inline Dev {

//! Checks the following environment variables and creates TDriverConfig with the first appeared:
//! YDB_SERVICE_ACCOUNT_KEY_FILE_CREDENTIALS=<path-to-file> — service account key file,
Expand Down
2 changes: 1 addition & 1 deletion ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/iam/iam.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "common/types.h"

namespace NYdb::inline V3 {
namespace NYdb::inline Dev {

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