{"id":19988950,"url":"https://github.com/lodestone/iseshima_store","last_synced_at":"2026-05-25T16:02:42.410Z","repository":{"id":66561260,"uuid":"65068321","full_name":"lodestone/iseshima_store","owner":"lodestone","description":"Simple ruby ORM for Google Cloud Datastore.","archived":false,"fork":false,"pushed_at":"2016-06-22T02:23:12.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-08T22:18:53.662Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":false,"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/lodestone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2016-08-06T06:21:14.000Z","updated_at":"2018-10-30T09:15:10.000Z","dependencies_parsed_at":"2023-03-09T00:15:19.102Z","dependency_job_id":null,"html_url":"https://github.com/lodestone/iseshima_store","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/lodestone/iseshima_store","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lodestone%2Fiseshima_store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lodestone%2Fiseshima_store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lodestone%2Fiseshima_store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lodestone%2Fiseshima_store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lodestone","download_url":"https://codeload.github.com/lodestone/iseshima_store/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lodestone%2Fiseshima_store/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33482411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-25T14:31:05.219Z","status":"ssl_error","status_checked_at":"2026-05-25T14:31:02.878Z","response_time":57,"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":"2024-11-13T04:44:48.075Z","updated_at":"2026-05-25T16:02:42.383Z","avatar_url":"https://github.com/lodestone.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IseshimaStore :dolls:\n\nSimple ruby ORM for Google Cloud Datastore.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'iseshima_store'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install iseshima_store\n\n## Usage\n\n### Setup\n\nYou need to set project_id.\n\n```ruby\nIseshimaStore::Connection.configure do |config|\n  config.project_id = 'xxxx'\nend\n```\n\nIseshima Store depends on `gcloud-ruby` which uses ENV variables, you can set your variables through ENV.\n\n### Model\n\n```ruby\nclass User\n  include IseshimaStore::Base\n  attr_properties :name, :email\nend\n```\n\nThe only thing you have to do is just 2 things.\n\n1. include `IseshimaStore::Base` in your model class.\n2. declare your properties with `attr_properties`\n\nAny class is ok to use.\n\n### Create\n\n```ruby\nuser = User.new\nuser.email = 'taro@test.com'\nuser.name = 'taro'\nuser.save!\n```\n\nor\n\n```ruby\nUser.new.assign_attributes(\n  email: 'taro@test.com',\n  name: 'taro'\n).save!\n```\n\n### Save or Delete\n\n```\n# save\nuser = User.first\nuser.assign_attributes(email: 'taro@test.jp')\nuser.save!\n\n# delete\nuser.destroy\n```\n\nIseshimaStore does not have validations.\nAnother gem like `ActiveModel` is recommended to combine.\n\n### Finder\n\n```ruby\nusers = User.where(email: 'test@test.com')\nuser = User.find_by(email: 'test@test.com')\nuser = User.find(12345) # id\n\n# You can chain queries.\nuser = User.where(visible: true).find(10)\n```\n\n### Relation\n\n\n```ruby\ndiary = Diary.new\ndiary.title = 'My nightmare'\ndiary.parent = user\ndiary.save!\n```\n\n`parent=(model)` sets model's key to the key's parent of instance.\n\n\n### Low level search\n\n```ruby\nquery = Gcloud::Datastore::Query.new\nquery.kind('User')\nquery.where('email', '=', 'test@test.com')\nres = User.search(query: query)\nusers = res[:records]\n```\n\nIf you need `limit` \u0026 `cursor`, use this API.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flodestone%2Fiseshima_store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flodestone%2Fiseshima_store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flodestone%2Fiseshima_store/lists"}