{"id":28547847,"url":"https://github.com/ydb-platform/ydb-rs-sdk","last_synced_at":"2026-04-26T21:02:12.553Z","repository":{"id":37033303,"uuid":"405003943","full_name":"ydb-platform/ydb-rs-sdk","owner":"ydb-platform","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-17T08:08:53.000Z","size":1997,"stargazers_count":66,"open_issues_count":133,"forks_count":28,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-04-17T09:03:48.280Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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":"CONTRIBUTING.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-09-10T08:05:12.000Z","updated_at":"2026-04-17T08:08:57.000Z","dependencies_parsed_at":"2026-04-17T09:00:55.098Z","dependency_job_id":null,"html_url":"https://github.com/ydb-platform/ydb-rs-sdk","commit_stats":{"total_commits":502,"total_committers":12,"mean_commits":"41.833333333333336","dds":0.5597609561752988,"last_synced_commit":"77861ec8c072a8c6ca93eea42a9abeb32f10b0bd"},"previous_names":[],"tags_count":99,"template":false,"template_full_name":null,"purl":"pkg:github/ydb-platform/ydb-rs-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fydb-rs-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fydb-rs-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fydb-rs-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fydb-rs-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ydb-platform","download_url":"https://codeload.github.com/ydb-platform/ydb-rs-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fydb-rs-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32310804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T19:15:34.056Z","status":"ssl_error","status_checked_at":"2026-04-26T19:15:15.467Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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.160Z","updated_at":"2026-04-26T21:02:12.546Z","avatar_url":"https://github.com/ydb-platform.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust YDB SDK\n[![Latest Version](https://img.shields.io/crates/v/ydb.svg)](https://crates.io/crates/ydb)\n[![Released API docs](https://docs.rs/ydb/badge.svg)](https://docs.rs/ydb)\n[![YDB tests](https://github.com/ydb-platform/ydb-rs-sdk/actions/workflows/rust-tests.yml/badge.svg?branch=master\u0026event=schedule)](https://github.com/ydb-platform/ydb-rs-sdk/actions/workflows/rust-tests.yml)\n\nRust SDK for YDB.\n\n### Prerequisites\nRust 1.82.0 or newer\n\n### Installation\nAdd the YDB dependency to your project using `cargo add ydb` or add this your Cargo.toml:\n```toml\n[dependencies]\nydb = \"0.12.2\"\n```\n\n### Example\nCreate a new Rust file (e.g., main.rs) and add the following code:\n\n```rust\nuse ydb::{ClientBuilder, Query, AccessTokenCredentials, YdbResult};\n\n#[tokio::main]\nasync fn main() -\u003e YdbResult\u003c()\u003e {\n\n // create the driver\n let client = ClientBuilder::new_from_connection_string(\"grpc://localhost:2136?database=local\")?\n    .with_credentials(AccessTokenCredentials::from(\"asd\"))\n    .client()?;\n\n // wait until the background initialization of the driver finishes\n // In this example, it will never be resolved because YDB methods have\n // infinite retries by default. You can manage it using a standard\n // Tokio timeout.\n client.wait().await?;\n\n // read the query result\n let sum: i32 = client\n    .table_client() // create table client\n    .retry_transaction(|mut t| async move {\n        // the code in transaction can retry a few times if there was a retriable error\n\n        // send the query to the database\n        let res = t.query(Query::from(\"SELECT 1 + 1 AS sum\")).await?;\n\n        // read exactly one result from the db\n        let field_val: i32 = res.into_only_row()?.remove_field_by_name(\"sum\")?.try_into()?;\n\n        // return result\n        return Ok(field_val);\n    })\n    .await?;\n\n // this will print \"sum: 2\"\n println!(\"sum: {}\", sum);\n    return Ok(());\n}\n```\n\nFor more examples, check out the [URL shortener application](https://github.com/ydb-platform/ydb-rs-sdk/tree/master/ydb-example-urlshortener) or [many small examples](https://github.com/ydb-platform/ydb-rs-sdk/tree/master/ydb/examples).\n\n## Tests\n\nIntegration tests, with dependency from real YDB database marked as ignored.\nTo run it:\n1. Set YDB_CONNECTION_STRING env\n2. run cargo test -- --include-ignored\n\n# Version policy\n\nCrates follow to semver 2.0 https://semver.org/spec/v2.0.0.html.\nFor version 0.X.Y: X increments for expected backwards incompatible changes, Y increments for any compatible changes (fixes, extend api without broke compatible).\nFor incompatible changes creates github release with describe incompatibles.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fydb-platform%2Fydb-rs-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fydb-platform%2Fydb-rs-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fydb-platform%2Fydb-rs-sdk/lists"}