rbino / tigerbeetlex

An Elixir client for TigerBeetle
Apache License 2.0
36 stars 6 forks source link

Add bang functions to batches #17

Closed rbino closed 1 year ago

rbino commented 1 year ago

Right now {Account,ID,Transfer}Batch have new and add_{account,id,batch} functions that return {:ok, batch} | {:error, reason}.

We should also add their bang versions (new! and add_{account,id,batch}!) which return the batch or raise, since they can be handy to pipe many additions to the batch one after the other.