{"id":13509463,"url":"https://github.com/peburrows/diplomat","last_synced_at":"2025-03-30T13:32:15.485Z","repository":{"id":53674009,"uuid":"53684878","full_name":"peburrows/diplomat","owner":"peburrows","description":"Elixir library for interacting with Google's Cloud Datastore","archived":false,"fork":false,"pushed_at":"2023-04-28T22:06:48.000Z","size":236,"stargazers_count":94,"open_issues_count":11,"forks_count":22,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-01T07:22:46.367Z","etag":null,"topics":["database","elixir","google-cloud-datastore"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peburrows.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-03-11T17:37:13.000Z","updated_at":"2023-09-01T08:25:57.000Z","dependencies_parsed_at":"2024-01-05T21:59:29.705Z","dependency_job_id":"65461150-4cdc-49d2-aaf5-49a5935cfd6e","html_url":"https://github.com/peburrows/diplomat","commit_stats":{"total_commits":185,"total_committers":13,"mean_commits":14.23076923076923,"dds":"0.27567567567567564","last_synced_commit":"ff53dcdd27136691a33611277183a335acf8c5c0"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peburrows%2Fdiplomat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peburrows%2Fdiplomat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peburrows%2Fdiplomat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peburrows%2Fdiplomat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peburrows","download_url":"https://codeload.github.com/peburrows/diplomat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246324039,"owners_count":20759067,"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":["database","elixir","google-cloud-datastore"],"created_at":"2024-08-01T02:01:08.168Z","updated_at":"2025-03-30T13:32:15.141Z","avatar_url":"https://github.com/peburrows.png","language":"Elixir","funding_links":[],"categories":["Third Party APIs"],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/peburrows/diplomat.svg?branch=master)](https://travis-ci.org/peburrows/diplomat)\n\n# Diplomat\n\nDiplomat is an Elixir library for interacting with Google's Cloud Datastore.\n\n## Installation\n\n  1. Add datastore to your list of dependencies in `mix.exs`:\n\n  ```elixir\n  def deps do\n    [{:diplomat, \"~\u003e 0.2\"}]\n  end\n  ```\n\n  2. Make sure you've configured [Goth](https://github.com/peburrows/goth) with your credentials:\n\n  ```elixir\n  config :goth,\n    json: {:system, \"GCP_CREDENTIALS_JSON\"}\n  ```\n\n## Usage\n\n#### Insert an Entity:\n\n```elixir\nDiplomat.Entity.new(\n  %{\"name\" =\u003e \"My awesome book\", \"author\" =\u003e \"Phil Burrows\"},\n  \"Book\",\n  \"my-unique-book-id\"\n) |\u003e Diplomat.Entity.insert\n```\n\n#### Find an Entity via a GQL Query:\n\n```elixir\nDiplomat.Query.new(\n  \"select * from `Book` where name = @name\",\n  %{name: \"20,000 Leagues Under The Sea\"}\n) |\u003e Diplomat.Query.execute\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeburrows%2Fdiplomat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeburrows%2Fdiplomat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeburrows%2Fdiplomat/lists"}