Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
c91941d
SQS Topic GetQueueUrl stub (#27623)
ubyte Nov 25, 2025
e751201
explicitly call TString::MutRef in the conversion to std::string (#2…
ubyte Nov 25, 2025
1f65688
ExportToFs / ImportFromFs API (#28072)
stanislav-shchetinin Nov 25, 2025
c0c04e0
Изменения в public API для поддержки Message Level Parallelism (#27707)
nshestakov Nov 25, 2025
e15e8e6
Add handlers for ExportToFs / ImportFromFs (#28126)
stanislav-shchetinin Nov 25, 2025
6105a82
Collect cluster state change api (#28622)
Evgenik2 Nov 25, 2025
6bf40ab
use NanoSecondsOfSecond method to fill duration field (#26786)
ubyte Nov 25, 2025
1169675
fix java_package name in ydb/public/api/protos/draft (#28750)
ubyte Nov 25, 2025
f256410
Topic SDK: minor changes (#28282)
qyryq Nov 25, 2025
cbd929b
Fix time stamp in collect cluster metrics (#29018)
Evgenik2 Nov 25, 2025
e08f566
Add TestShard public api (#28717)
mregrock Nov 25, 2025
e38dc64
[C++ SDK] Added deadline propagation to session pool (#28158)
Gazizonoki Nov 25, 2025
8b2c8bf
Add snowball filter for fulltext index (#28827)
stebloev Nov 25, 2025
acd50a0
Fix keepalive time (#29235)
pnv1 Nov 25, 2025
97498b0
[C++ SDK] Fixed uninitialized value in balancing policy (#29249)
Gazizonoki Nov 25, 2025
97e5e46
Entries remain in the TxWrites after the immediate transaction (#29285)
Alek5andr-Kotov Nov 25, 2025
48277b2
Encryption settings in API for backups to fs (#28305)
stanislav-shchetinin Nov 25, 2025
aed6d21
Compress cluster state content (#29467)
Evgenik2 Nov 25, 2025
3ad4ff4
Update import generation: 29
github-actions[bot] Nov 25, 2025
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 .github/import_generation.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
29
30
2 changes: 1 addition & 1 deletion .github/last_commit.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
eaa66fe4cc75727a60d89a9ec9d99970e03ce0e0
8f09fc5ca428fadaf61de1abdea31c06a664f147
35 changes: 35 additions & 0 deletions include/ydb-cpp-sdk/client/export/export.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,40 @@ class TExportToS3Response : public TOperation {
TMetadata Metadata_;
};

/// FS
struct TExportToFsSettings : public TOperationRequestSettings<TExportToFsSettings> {
using TSelf = TExportToFsSettings;

struct TItem {
std::string Src;
std::string Dst;
};

FLUENT_SETTING(std::string, BasePath);
FLUENT_SETTING_VECTOR(TItem, Item);
FLUENT_SETTING_OPTIONAL(std::string, Description);
FLUENT_SETTING_OPTIONAL(uint32_t, NumberOfRetries);
FLUENT_SETTING_OPTIONAL(std::string, Compression);
};

class TExportToFsResponse : public TOperation {
public:
struct TMetadata {
TExportToFsSettings Settings;
EExportProgress Progress;
std::vector<TExportItemProgress> ItemsProgress;
};

public:
using TOperation::TOperation;
TExportToFsResponse(TStatus&& status, Ydb::Operations::Operation&& operation);

const TMetadata& Metadata() const;

private:
TMetadata Metadata_;
};

class TExportClient {
class TImpl;

Expand All @@ -134,6 +168,7 @@ class TExportClient {

NThreading::TFuture<TExportToYtResponse> ExportToYt(const TExportToYtSettings& settings);
NThreading::TFuture<TExportToS3Response> ExportToS3(const TExportToS3Settings& settings);
NThreading::TFuture<TExportToFsResponse> ExportToFs(const TExportToFsSettings& settings);

private:
std::shared_ptr<TImpl> Impl_;
Expand Down
43 changes: 43 additions & 0 deletions include/ydb-cpp-sdk/client/import/import.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,48 @@ class TListObjectsInS3ExportResult : public TStatus {

using TAsyncListObjectsInS3ExportResult = NThreading::TFuture<TListObjectsInS3ExportResult>;

/// FS
struct TImportFromFsSettings : public TOperationRequestSettings<TImportFromFsSettings> {
using TSelf = TImportFromFsSettings;

struct TItem {
// Source path.
// Path to the exported table/directory in FS (relative to base_path)
std::string Src;

// Destination path.
// database path where to import data
std::string Dst;
};

FLUENT_SETTING(std::string, BasePath);
FLUENT_SETTING_VECTOR(TItem, Item);
FLUENT_SETTING_OPTIONAL(std::string, Description);
FLUENT_SETTING_OPTIONAL(uint32_t, NumberOfRetries);
FLUENT_SETTING_OPTIONAL(bool, NoACL);
FLUENT_SETTING_OPTIONAL(bool, SkipChecksumValidation);
};

class TImportFromFsResponse : public TOperation {
public:
struct TMetadata {
TImportFromFsSettings Settings;
EImportProgress Progress;
std::vector<TImportItemProgress> ItemsProgress;
};

public:
using TOperation::TOperation;
TImportFromFsResponse(TStatus&& status, Ydb::Operations::Operation&& operation);

const TMetadata& Metadata() const;

private:
TMetadata Metadata_;
};

using TAsyncImportFromFsResponse = NThreading::TFuture<TImportFromFsResponse>;

/// Data
struct TImportYdbDumpDataSettings : public TOperationRequestSettings<TImportYdbDumpDataSettings> {
using TSelf = TImportYdbDumpDataSettings;
Expand All @@ -162,6 +204,7 @@ class TImportClient {
TImportClient(const TDriver& driver, const TCommonClientSettings& settings = TCommonClientSettings());

TAsyncImportFromS3Response ImportFromS3(const TImportFromS3Settings& settings);
TAsyncImportFromFsResponse ImportFromFs(const TImportFromFsSettings& settings);

TAsyncListObjectsInS3ExportResult ListObjectsInS3Export(const TListObjectsInS3ExportSettings& settings, std::int64_t pageSize = 0, const std::string& pageToken = {});

Expand Down
4 changes: 3 additions & 1 deletion include/ydb-cpp-sdk/client/query/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ namespace NYdb::inline V3 {
namespace NYdb::inline V3::NQuery {

struct TCreateSessionSettings : public TSimpleRequestSettings<TCreateSessionSettings> {
TCreateSessionSettings();
TCreateSessionSettings() {
ClientTimeout(TDuration::Seconds(5));
}
};

using TAsyncCreateSessionResult = NThreading::TFuture<TCreateSessionResult>;
Expand Down
Loading
Loading