Skip to content

Commit 8637e85

Browse files
stanislav-shchetininGazizonoki
authored andcommitted
drop table in basic_example
1 parent 2a674f2 commit 8637e85

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/integration/basic_example/basic_example.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,3 +514,15 @@ std::vector<NYdb::TResultSet> ScanQuerySelect(TTableClient client, const std::st
514514

515515
return resultSets;
516516
}
517+
518+
void DropTables(TTableClient& client, const std::string& path) {
519+
ThrowOnError(client.RetryOperationSync([path](TSession session) {
520+
return session.DropTable(JoinPath(path, "series")).ExtractValueSync();
521+
}));
522+
ThrowOnError(client.RetryOperationSync([path](TSession session) {
523+
return session.DropTable(JoinPath(path, "seasons")).ExtractValueSync();
524+
}));
525+
ThrowOnError(client.RetryOperationSync([path](TSession session) {
526+
return session.DropTable(JoinPath(path, "episodes")).ExtractValueSync();
527+
}));
528+
}

0 commit comments

Comments
 (0)