{"id":28547849,"url":"https://github.com/ydb-platform/ydb-cpp-sdk","last_synced_at":"2025-07-23T15:34:42.553Z","repository":{"id":225340191,"uuid":"741508486","full_name":"ydb-platform/ydb-cpp-sdk","owner":"ydb-platform","description":"YDB C++ SDK","archived":false,"fork":false,"pushed_at":"2025-07-15T10:37:12.000Z","size":16862,"stargazers_count":11,"open_issues_count":71,"forks_count":20,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-07-16T00:19:39.351Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ydb-platform.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-10T14:42:31.000Z","updated_at":"2025-07-15T10:36:40.000Z","dependencies_parsed_at":"2024-06-03T01:04:07.192Z","dependency_job_id":"8991275c-24bd-4616-b29e-8ad4546a14a4","html_url":"https://github.com/ydb-platform/ydb-cpp-sdk","commit_stats":null,"previous_names":["ydb-platform/ydb-cpp-sdk"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/ydb-platform/ydb-cpp-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fydb-cpp-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fydb-cpp-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fydb-cpp-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fydb-cpp-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ydb-platform","download_url":"https://codeload.github.com/ydb-platform/ydb-cpp-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fydb-cpp-sdk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266704575,"owners_count":23971496,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-10T01:07:53.658Z","updated_at":"2025-07-23T15:34:42.541Z","avatar_url":"https://github.com/ydb-platform.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YDB C++ SDK: driver for [YDB](https://github.com/ydb-platform/ydb)\n\n## Building YDB C++ SDK from sources\n\n### Prerequisites\n\n- cmake 3.22+\n- clang 16+\n- git 2.20+\n- ninja 1.10+\n- ragel\n- yasm\n- protoc\n\n### Library dependencies\n\n- gRPC\n- protobuf\n- OpenSSL\n- Iconv\n- IDN\n- rapidjson\n- xxhash\n- zlib\n- zstd\n- lz4\n- snappy 1.1.8+\n- base64\n- brotli 1.1.0+\n- double-conversion\n- jwt-cpp\n\n### Runtime requirements\n\n- libidn11-dev (IDN)\n- libiconv (Iconv)\n\n### Testing requirements\n\n- gtest\n- gmock\n\n### Install dependencies\n\n```bash\nsudo apt-get -y update\nsudo apt-get -y install git cmake ninja-build libidn11-dev ragel yasm protobuf-compiler \\\n  protobuf-compiler-grpc libprotobuf-dev libgrpc++-dev libgrpc-dev libgrpc++1 libgrpc10 \\\n  rapidjson-dev zlib1g-dev libxxhash-dev libzstd-dev libsnappy-dev liblz4-dev \\\n  libgtest-dev libgmock-dev libbz2-dev libdouble-conversion-dev libssl-dev\n\nwget https://apt.llvm.org/llvm.sh\nchmod u+x llvm.sh\nsudo ./llvm.sh 16\n\nwget https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz\ntar -xvzf libiconv-1.15.tar.gz \u0026\u0026 cd libiconv-1.15\n./configure --prefix=/usr/local\nmake\nsudo make install\n\nwget -O base64-0.5.2.tar.gz https://github.com/aklomp/base64/archive/refs/tags/v0.5.2.tar.gz\ntar -xvzf base64-0.5.2.tar.gz \u0026\u0026 cd base64-0.5.2\nmkdir build \u0026\u0026 cd build\ncmake -DCMAKE_BUILD_TYPE=Release ..\nsudo cmake --build . --config Release --target install\n\nwget -O brotli-1.1.0.tar.gz https://github.com/google/brotli/archive/refs/tags/v1.1.0.tar.gz\ntar -xvzf brotli-1.1.0.tar.gz \u0026\u0026 cd brotli-1.1.0\nmkdir build \u0026\u0026 cd build\ncmake -DCMAKE_BUILD_TYPE=Release ..\nsudo cmake --build . --config Release --target install\n\nwget -O jwt-cpp-0.7.0.tar.gz https://github.com/Thalhammer/jwt-cpp/archive/refs/tags/v0.7.0.tar.gz\ntar -xvzf jwt-cpp-0.7.0.tar.gz \u0026\u0026 cd jwt-cpp-0.7.0\nmkdir build \u0026\u0026 cd build\ncmake -DCMAKE_BUILD_TYPE=Release ..\nsudo cmake --build . --config Release --target install\n```\n\n### Create the work directory\n\n```bash\nmkdir ~/ydbwork \u0026\u0026 cd ~/ydbwork\nmkdir build\n```\n\n### Install ccache\n\nInstall `ccache` into `/usr/local/bin/`. The recommended version is `4.8.1` or above, the minimum required version is `4.7`.\n\n```bash\n(V=4.8.1; curl -L https://github.com/ccache/ccache/releases/download/v${V}/ccache-${V}-linux-x86_64.tar.xz | \\\nsudo tar -xJ -C /usr/local/bin/ --strip-components=1 --no-same-owner ccache-${V}-linux-x86_64/ccache)\n```\n\n### Clone the ydb-cpp-sdk repository\n\n```bash\ngit clone --recurse-submodules https://github.com/ydb-platform/ydb-cpp-sdk.git\n```\n\n### Configure\n\nGenerate build configuration using the `release` preset. `ccache` is located automatically, but if you get the warning that it's not been found, specify its location by passing `-DCCACHE_PATH=path/to/bin`\n\n```bash\ncd ydb-cpp-sdk\ncmake --preset release\n```\n\n### Build\n\n```bash\ncmake --build --preset release\n```\n\n### Test\n\nSpecify a level of parallelism by passing the `-j\u003clevel\u003e` option into the command below (e.g. `-j$(nproc)`)\n\nRunning all tests:\n\n```bash\nctest -j$(nproc) --preset release\n```\n\nRunning unit tests only:\n\n```bash\nctest -j$(nproc) --preset release-unit\n```\n\nRunning integration tests only:\n\n```bash\nctest -j$(nproc) --preset release-integration\n```\n\nNote that some tests use a legacy test library instead of GoogleTest, see `./\u003ctest_target\u003e --help` for details. If you need to run only certain test cases, here is an alternative for `--gtest_filter` option:\n\n```bash\ncat \u003c\u003cEOF | ./\u003ctest_target\u003e --filter-file /dev/fd/0\n-ExcludedTestCase\n+IncludedTestCase\n+IncludedTestCase::TestName\nEOF\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fydb-platform%2Fydb-cpp-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fydb-platform%2Fydb-cpp-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fydb-platform%2Fydb-cpp-sdk/lists"}