diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6ee075b..000ab663 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Build cpplint image - run: pip install cpplint + run: pip install "cpplint<2" - name: Check code in /src run: find src/ -name "*.cc" -o -name "*.h" | xargs cpplint - name: Check code in /tests @@ -56,7 +56,7 @@ jobs: - reductstore_version: "main" exclude_api_version_tag: "" - reductstore_version: "latest" - exclude_api_version_tag: "~[1_12]" + exclude_api_version_tag: "~[1_13]" - license_file: "" exclude_license_tag: "~[license]" diff --git a/CHANGELOG.md b/CHANGELOG.md index aed095ad..e3c4fd61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## Added + +- RS-543: Support conditional query, [PR-79](https://github.com/reductstore/reduct-cpp/pull/79) + ## [1.12.0] = 2024-10-04 ### Added diff --git a/README.md b/README.md index 57958ce8..223f684a 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ in C++20. It allows developers to easily interact with the database from their C ## Features * Written in C++20 -* Support ReductStore [HTTP API v1.12](https://www.reduct.store/docs/next/http-api) +* Support ReductStore [HTTP API v1.13](https://www.reduct.store/docs/next/http-api) * Support HTTP and HTTPS protocols * Support Linux AMD64 and Windows diff --git a/src/reduct/bucket.cc b/src/reduct/bucket.cc index 44ee1872..d67b63a4 100644 --- a/src/reduct/bucket.cc +++ b/src/reduct/bucket.cc @@ -23,6 +23,7 @@ namespace reduct { using internal::IHttpClient; +using internal::QueryOptionsToJsonString; class Bucket : public IBucket { public: @@ -174,8 +175,8 @@ class Bucket : public IBucket { path.append(fmt::format("?ts={}", ToMicroseconds(*ts))); } - auto record_err = ReadRecord(std::move(path), false, false, callback); - return record_err; + auto record_err = ReadRecord(std::move(path), ReadType::kSingle, false, callback); + return record_err.error; } Error Head(std::string_view entry_name, std::optional