{"id":13622021,"url":"https://github.com/softprops/dynomite","last_synced_at":"2025-04-12T15:37:55.910Z","repository":{"id":29634248,"uuid":"122302830","full_name":"softprops/dynomite","owner":"softprops","description":"⚡🦀 🧨 make your rust types fit DynamoDB and visa versa","archived":false,"fork":false,"pushed_at":"2023-12-11T23:19:04.000Z","size":2516,"stargazers_count":221,"open_issues_count":34,"forks_count":52,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-17T11:59:53.750Z","etag":null,"topics":["aws","dynamodb","nosql","rusoto"],"latest_commit_sha":null,"homepage":"https://docs.rs/dynomite/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/softprops.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2018-02-21T07:00:35.000Z","updated_at":"2025-02-04T02:33:16.000Z","dependencies_parsed_at":"2024-06-19T02:50:15.044Z","dependency_job_id":"ee0e885f-78f0-49cf-8797-6a7196b26514","html_url":"https://github.com/softprops/dynomite","commit_stats":{"total_commits":339,"total_committers":13,"mean_commits":"26.076923076923077","dds":0.1799410029498525,"last_synced_commit":"4669592b83750ef7d6f40265c729ed059e86b119"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fdynomite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fdynomite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fdynomite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fdynomite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softprops","download_url":"https://codeload.github.com/softprops/dynomite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247024150,"owners_count":20870940,"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","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":["aws","dynamodb","nosql","rusoto"],"created_at":"2024-08-01T21:01:13.015Z","updated_at":"2025-04-03T15:10:49.839Z","avatar_url":"https://github.com/softprops.png","language":"Rust","readme":"\u003cdiv align=\"center\"\u003e\n  🦀🧨\n\u003c/div\u003e\n\n\u003ch1 align=\"center\"\u003e\n  dynomite\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n   dynomite makes DynamoDB fit your types (and visa versa)\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca alt=\"GitHub Actions\" href=\"https://github.com/softprops/dynomite/actions\"\u003e\n    \u003cimg src=\"https://github.com/softprops/dynomite/workflows/Main/badge.svg\"/\u003e\n  \u003c/a\u003e\n  \u003ca alt=\"crates.io\" href=\"https://crates.io/crates/dynomite\"\u003e\n    \u003cimg src=\"https://img.shields.io/crates/v/dynomite.svg?logo=rust\"/\u003e\n  \u003c/a\u003e\n  \u003ca alt=\"docs.rs\" href=\"http://docs.rs/dynomite\"\u003e\n    \u003cimg src=\"https://docs.rs/dynomite/badge.svg\"/\u003e\n  \u003c/a\u003e\n  \u003ca alt=\"latest docs\" href=\"https://softprops.github.io/dynomite\"\u003e\n   \u003cimg src=\"https://img.shields.io/badge/docs-latest-green.svg\"/\u003e\n  \u003c/a\u003e\n  \u003ca alt=\"license\" href=\"LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/license-MIT-brightgreen.svg\"/\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\n## Overview\n\nGoals\n\n* ⚡ make writing [dynamodb](https://aws.amazon.com/dynamodb/) applications in [rust](https://www.rust-lang.org/) a productive experience\n* 🦀 exploit rust's type safety features\n* 👩‍💻 leverage existing work of the [rusoto](https://github.com/rusoto/rusoto) rust project\n* ☔ commitment to supporting applications built using stable rust\n* 📚 commitment to documentation\n\nFeatures\n\n* 💌 less boilerplate\n* ♻️ automatic async pagination\n* 🕶️ client level retry interfaces for [robust error handling](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html)\n\n\nFrom this\n\n```rust\nuse std::collections::HashMap;\nuse rusoto_dynamodb::AttributeValue;\nuse uuid::Uuid;\n\nlet mut item = HashMap::new();\nitem.insert(\n  \"pk\".to_string(), AttributeValue {\n    s: Some(Uuid::new_v4().to_hyphenated().to_string()),\n    ..AttributeValue::default()\n  }\n);\nitem.insert(\n  // 🤬typos anyone?\n  \"quanity\".to_string(), AttributeValue {\n    n: Some(\"whoops\".to_string()),\n    ..AttributeValue::default()\n  }\n);\n```\n\nTo this\n\n```rust\nuse dynomite::Item;\nuse uuid::Uuid;\n\n#[derive(Item)]\nstruct Order {\n  #[dynomite(partition_key)]\n  pk: Uuid,\n  quantity: u16\n}\n\nlet item = Order {\n  pk: Uuid::new_v4(),\n  quantity: 4\n}.into();\n```\n\nPlease see the [API documentation](https://softprops.github.io/dynomite) for how\nto get started. Enjoy.\n\n## 📦 Install\n\nIn your Cargo.toml file, add the following under the `[dependencies]` heading\n\n```toml\ndynomite = \"0.10\"\n```\n\n## 🤸 Examples\n\nYou can find some example application code under [dynomite/examples](dynomite/examples)\n\n### DynamoDB local\n\nAWS provides [a convenient way to host a local instance of DynamoDB](https://hub.docker.com/r/amazon/dynamodb-local/) for\ntesting.\n\nHere is a short example of how to get up a testing locally quickly with both dynomite as well as `rusoto_dynamodb`.\n\nIn one terminal spin up a Docker container for [DynamoDB local](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.UsageNotes.html) listening on port `8000`\n\n```sh\n$ docker run --rm -p 8000:8000 amazon/dynamodb-local\n```\n\nIn another, run a rust binary with a client initialized like you see the the [local.rs example](dynomite/examples/local.rs)\n\n## Resources\n\n* [How DynamoDB works](https://www.slideshare.net/AmazonWebServices/amazon-dynamodb-under-the-hood-how-we-built-a-hyperscale-database-dat321-aws-reinvent-2018)\n\nDoug Tangren (softprops) 2018-2020\n","funding_links":[],"categories":["Libraries","库 Libraries"],"sub_categories":["Database","数据库 Database"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftprops%2Fdynomite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftprops%2Fdynomite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftprops%2Fdynomite/lists"}