1
1
#include " basic_example.h"
2
2
3
- #include < src/util/folder/pathsplit.h>
4
3
#include < ydb-cpp-sdk/json_value/ydb_json_value.h>
5
4
5
+ #include < filesystem>
6
6
#include < format>
7
7
8
8
using namespace NYdb ;
@@ -19,10 +19,10 @@ static std::string JoinPath(const std::string& basePath, const std::string& path
19
19
return path;
20
20
}
21
21
22
- TPathSplitUnix prefixPathSplit (basePath);
23
- prefixPathSplit. AppendComponent ( path) ;
22
+ std::filesystem::path prefixPathSplit (basePath);
23
+ prefixPathSplit /= path;
24
24
25
- return prefixPathSplit. Reconstruct () ;
25
+ return prefixPathSplit;
26
26
}
27
27
28
28
// /////////////////////////////////////////////////////////////////////////////
@@ -176,7 +176,7 @@ static TStatus UpsertSimpleTransaction(TSession session, const std::string& path
176
176
177
177
// ! Shows usage of parameters in data queries.
178
178
static TStatus SelectWithParamsTransaction (TSession session, const std::string& path,
179
- ui64 seriesId, ui64 seasonId, std::optional<TResultSet>& resultSet)
179
+ uint64_t seriesId, uint64_t seasonId, std::optional<TResultSet>& resultSet)
180
180
{
181
181
auto query = std::format (R"(
182
182
--!syntax_v1
@@ -216,7 +216,7 @@ static TStatus SelectWithParamsTransaction(TSession session, const std::string&
216
216
217
217
// ! Shows usage of prepared queries.
218
218
static TStatus PreparedSelectTransaction (TSession session, const std::string& path,
219
- ui64 seriesId, ui64 seasonId, ui64 episodeId, std::optional<TResultSet>& resultSet)
219
+ uint64_t seriesId, uint64_t seasonId, uint64_t episodeId, std::optional<TResultSet>& resultSet)
220
220
{
221
221
// Once prepared, query data is stored in the session and identified by QueryId.
222
222
// Local query cache is used to keep track of queries, prepared in current session.
@@ -268,7 +268,7 @@ static TStatus PreparedSelectTransaction(TSession session, const std::string& pa
268
268
}
269
269
270
270
// ! Shows usage of transactions consisting of multiple data queries with client logic between them.
271
- static TStatus MultiStepTransaction (TSession session, const std::string& path, ui64 seriesId, ui64 seasonId,
271
+ static TStatus MultiStepTransaction (TSession session, const std::string& path, uint64_t seriesId, uint64_t seasonId,
272
272
std::optional<TResultSet>& resultSet)
273
273
{
274
274
auto query1 = std::format (R"(
0 commit comments