{"id":37182054,"url":"https://github.com/timakin/datastore","last_synced_at":"2026-01-14T21:00:55.636Z","repository":{"id":57592753,"uuid":"111770701","full_name":"timakin/datastore","owner":"timakin","description":"(AE|Cloud) Datastore Wrapper","archived":false,"fork":true,"pushed_at":"2017-11-23T06:18:40.000Z","size":176,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T13:31:25.339Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"mercari/datastore","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timakin.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}},"created_at":"2017-11-23T06:15:09.000Z","updated_at":"2017-11-23T06:15:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/timakin/datastore","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/timakin/datastore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timakin%2Fdatastore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timakin%2Fdatastore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timakin%2Fdatastore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timakin%2Fdatastore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timakin","download_url":"https://codeload.github.com/timakin/datastore/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timakin%2Fdatastore/sbom","scorecard":{"id":885527,"data":{"date":"2025-08-11","repo":{"name":"github.com/timakin/datastore","commit":"a742736bea809ac9ebb6f92413411640c718746f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating google/cloud-sdk:178.0.0 to google/cloud-sdk:178.0.0@sha256:86af64c8b73d3e9eec46c8c37029c027242f00260ae7c27b5d599e6250ec3e8c","Warn: goCommand not pinned by hash: setup.sh:6","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   1 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":0,"reason":"25 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-ff7x-qrg7-qggm","Warn: Project is vulnerable to: GHSA-q42p-pg8m-cqh6","Warn: Project is vulnerable to: GHSA-w457-6q6x-cgp9","Warn: Project is vulnerable to: GHSA-62gr-4qp9-h98f","Warn: Project is vulnerable to: GHSA-f52g-6jhx-586p","Warn: Project is vulnerable to: GHSA-2cf5-4w76-r9qv","Warn: Project is vulnerable to: GHSA-3cqr-58rm-57f8","Warn: Project is vulnerable to: GHSA-g9r4-xpmj-mj65","Warn: Project is vulnerable to: GHSA-q2c6-c6pm-g3gh","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-38fc-wpqx-33j7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T09:53:05.495Z","repository_id":57592753,"created_at":"2025-08-24T09:53:05.495Z","updated_at":"2025-08-24T09:53:05.495Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":"2026-01-14T21:00:28.090Z","updated_at":"2026-01-14T21:00:55.526Z","avatar_url":"https://github.com/timakin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Datastore Wrapper [![Go Documentation](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)][godoc] [![CircleCI](https://circleci.com/gh/mercari/datastore.svg?style=svg)][circleci]\n\n[godoc]: https://godoc.org/go.mercari.io/datastore\n[circleci]: https://circleci.com/gh/mercari/datastore\n\n:construction: This package is unstable :construction: [github repo](https://github.com/mercari/datastore)\n\n(AppEngine | Cloud) Datastore wrapper for Go 👉\n\nSimple.\nHappy.\nRespect standard library.\n\n```\n$ go get -u go.mercari.io/datastore\n```\n\n## Feature\n\n### DO\n\n* Wrap `google.golang.org/appengine/datastore` and `cloud.google.com/go/datastore`\n    * keep key behavior\n    * align to `cloud.google.com/go/datastore` first\n* Re-implement datastore package\n* Re-implement datastore.SaveStruct \u0026 LoadStruct\n    * Ignore unmapped property\n    * Add PropertyTranslator interface\n        * Convert types like mytime.Unix to time.Time and reverse it\n        * Rename property like CreatedAt to createdAt or created_at and reverse it\n* Re-implement PropertyLoadSaver\n    * Pass context.Context to Save \u0026 Load method\n    * It can catch entity from the cache layers as well as from the datastore\n* Add retry feature to each RPC\n    * e.g. Retry AllocateID when it failed\n* Add cache layer uses without Tx\n    * About...\n        * Local Cache\n        * Memcache\n        * etc...\n    * Easy to ON/OFF switching\n* Add RPC hook layer\n    * It makes implements [memvache](https://github.com/vvakame/memvache) like cache strategy\n* Add some useful methods\n    * ~~GetAsIntIDMap, GetAsStringIDMap~~\n    * `aedatastore/TransactionContext`\n\n### DON'T\n\n* have utility functions\n* support firestore\n\n## Restriction\n\n* `aedatastore` package\n    * When using slice of struct, MUST specified `datastore:\",flatten\"` option.\n        * original (ae \u0026 cloud) datastore.SaveStruct have different behaviors.\n        * see aeprodtest/main.go `/api/test3`\n\n## How To Use\n\nTODO\n\n## Best Practice\n\nTODO\n\n## Project Navigation\n\n* `aedatastore`\n    * Datastore Wrapper implementation for AppEngine Datastore\n* `aeprodtest`\n    * Test code that works in AppEngine production environment\n* `boom`\n    * [goon](https://github.com/mjibson/goon) likes interface for this package\n* `clouddatastore`\n    * Datastore Wrapper implementation for Cloud Datastore\n* `internal`\n    * internal package\n* `testbed`\n    * Testbed to check the behavior of AE Datastore and Cloud Datastore\n* `testsuite`\n    * Test suite for this package\n        * [AE Datastore entry point](https://github.com/mercari/datastore/blob/master/aedatastore/testsuite_test.go)\n        * [Cloud Datastore entry point](https://github.com/mercari/datastore/blob/master/clouddatastore/testsuite_test.go)\n\n## TODO\n\n* Write tests for namespace\n* Implement cache layers\n* Retry feature\n* Write more documents\n\n## Committers\n\n * Masahiro Wakame ([@vvakame](https://github.com/vvakame))\n\n## Contribution\n\nPlease read the CLA below carefully before submitting your contribution.\n\nhttps://www.mercari.com/cla/\n\n### Setup environment \u0026 Run tests\n\n* requirements\n    * [gcloud sdk](https://cloud.google.com/sdk/docs/quickstarts)\n        * `gcloud components install app-engine-go`\n        * `gcloud components install beta cloud-datastore-emulator`\n    * [dep](github.com/golang/dep)\n        * `go get -u github.com/golang/dep/cmd/dep`\n\n1. Testing in local\n\n```\n$ ./setup.sh # exec once\n$ ./serve.sh # exec in background\n$ ./test.sh\n```\n\n2. Testing with Docker\n\n```\n$ ./build-in-docker.sh\n```\n\n3. Testing with [Circle CI CLI](https://circleci.com/docs/2.0/local-jobs/)\n\n```\n$ circleci build\n```\n\n## License\n\nCopyright 2017 Mercari, Inc.\n\nLicensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimakin%2Fdatastore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimakin%2Fdatastore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimakin%2Fdatastore/lists"}