Skip to content

Commit dc233ce

Browse files
CyberROFLGazizonoki
authored andcommitted
Moved commit "Introduce logging in 'tools restore'" from ydb repo
1 parent ddead97 commit dc233ce

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

include/ydb-cpp-sdk/client/table/table.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -983,6 +983,9 @@ class TCopyItem {
983983

984984
TCopyItem& SetOmitIndexes();
985985
bool OmitIndexes() const;
986+
987+
void Out(IOutputStream& out) const;
988+
986989
private:
987990
std::string Source_;
988991
std::string Destination_;

src/client/table/out.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#include <ydb-cpp-sdk/client/table/table.h>
22

3+
Y_DECLARE_OUT_SPEC(, NYdb::NTable::TCopyItem, o, x) {
4+
return x.Out(o);
5+
}
6+
37
Y_DECLARE_OUT_SPEC(, NYdb::NTable::TIndexDescription, o, x) {
48
return x.Out(o);
59
}

src/client/table/table.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2283,6 +2283,12 @@ bool TCopyItem::OmitIndexes() const {
22832283
return OmitIndexes_;
22842284
}
22852285

2286+
void TCopyItem::Out(IOutputStream& o) const {
2287+
o << "{ src: \"" << Source_ << "\""
2288+
<< ", dst: \"" << Destination_ << "\""
2289+
<< " }";
2290+
}
2291+
22862292
////////////////////////////////////////////////////////////////////////////////
22872293

22882294
TRenameItem::TRenameItem(const std::string& source, const std::string& destination)

0 commit comments

Comments
 (0)