Diplomat
Elixir library for interacting with Google's Cloud Datastore
Install / Use
/learn @peburrows/DiplomatREADME
Diplomat
Diplomat is an Elixir library for interacting with Google's Cloud Datastore.
Installation
- Add datastore to your list of dependencies in
mix.exs:
def deps do
[{:diplomat, "~> 0.2"}]
end
- 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
Related Skills
notion
343.1kNotion API for creating and managing pages, databases, and blocks.
feishu-drive
343.1k|
things-mac
343.1kManage Things 3 via the `things` CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database)
clawhub
343.1kUse the ClawHub CLI to search, install, update, and publish agent skills from clawhub.com
