diplomat v0.11.2 Diplomat.Client
Low level Google DataStore RPC client functions.
Link to this section Summary
Functions
Allocate ids for a list of keys with incomplete key paths
Begin a new transaction
Commit a transaction optionally performing any number of mutations
Lookup entities by key
Roll back a transaction specified by a transaction id
Query for entities
Link to this section Types
Link to this type
error()
error()
error() :: {:error, Diplomat.Proto.Status.t()}
error() :: {:error, Diplomat.Proto.Status.t()}
Link to this section Functions
Link to this function
allocate_ids(req)
allocate_ids(req)
allocate_ids(Diplomat.Proto.AllocateIdsRequest.t()) ::
[Diplomat.Key.t()] | error()
allocate_ids(Diplomat.Proto.AllocateIdsRequest.t()) :: [Diplomat.Key.t()] | error()
Allocate ids for a list of keys with incomplete key paths
Link to this function
begin_transaction(req)
begin_transaction(req)
begin_transaction(Diplomat.Proto.BeginTransactionRequest.t()) ::
{:ok, Diplomat.Proto.BeginTransactionResponse.t()} | error()
begin_transaction(Diplomat.Proto.BeginTransactionRequest.t()) :: {:ok, Diplomat.Proto.BeginTransactionResponse.t()} | error()
Begin a new transaction
Link to this function
commit(req)
commit(req)
commit(Diplomat.Proto.CommitRequest.t()) ::
{:ok, Diplomat.Proto.CommitResponse.t()} | error()
commit(Diplomat.Proto.CommitRequest.t()) :: {:ok, Diplomat.Proto.CommitResponse.t()} | error()
Commit a transaction optionally performing any number of mutations
Link to this function
lookup(req)
lookup(req)
lookup(Diplomat.Proto.LookupRequest.t()) :: [Diplomat.Entity.t()] | error()
lookup(Diplomat.Proto.LookupRequest.t()) :: [Diplomat.Entity.t()] | error()
Lookup entities by key
Link to this function
rollback(req)
rollback(req)
rollback(Diplomat.Proto.RollbackRequest.t()) ::
{:ok, Diplomat.Proto.RollbackResponse.t()} | error()
rollback(Diplomat.Proto.RollbackRequest.t()) :: {:ok, Diplomat.Proto.RollbackResponse.t()} | error()
Roll back a transaction specified by a transaction id
Link to this function
run_query(req)
run_query(req)
run_query(Diplomat.Proto.RunQueryRequest.t()) :: [Diplomat.Entity.t()] | error()
run_query(Diplomat.Proto.RunQueryRequest.t()) :: [Diplomat.Entity.t()] | error()
Query for entities