Popularity
6.5
Declining
Activity
0.0
Stable
94
4
21

Monthly Downloads: 111
Programming language: Elixir
License: MIT License
Tags: Third Party APIs    
Latest version: v0.11.2

diplomat alternatives and similar packages

Based on the "Third Party APIs" category.
Alternatively, view diplomat alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of diplomat or a related project?

Add another 'Third Party APIs' Package

README

Build Status

Diplomat

Diplomat is an Elixir library for interacting with Google's Cloud Datastore.

Installation

  1. Add datastore to your list of dependencies in mix.exs:
  def deps do
    [{:diplomat, "~> 0.2"}]
  end
  1. Make sure you've configured Goth with your credentials:
  config :goth,
    json: {:system, "GCP_CREDENTIALS_JSON"}

Usage

Insert an Entity:

Diplomat.Entity.new(
  %{"name" => "My awesome book", "author" => "Phil Burrows"},
  "Book",
  "my-unique-book-id"
) |> Diplomat.Entity.insert

Find an Entity via a GQL Query:

Diplomat.Query.new(
  "select * from `Book` where name = @name",
  %{name: "20,000 Leagues Under The Sea"}
) |> Diplomat.Query.execute