Structs representing parsed dllb server responses.
Each struct corresponds to a response status:
Dllb.Result.Ok- generic success ({"status":"ok"})Dllb.Result.Created- record created with an idDllb.Result.Deleted- record deleted, reports whether it existedDllb.Result.Rows- query result with count and data rowsDllb.Result.Error- server-side error with a message
Summary
Functions
Converts a decoded JSON map (from Dllb.Protocol.decode/2) into the
appropriate result struct by pattern-matching on the "status" key.
Types
@type t() :: Dllb.Result.Ok.t() | Dllb.Result.Created.t() | Dllb.Result.Deleted.t() | Dllb.Result.Rows.t() | Dllb.Result.Error.t()
Functions
Converts a decoded JSON map (from Dllb.Protocol.decode/2) into the
appropriate result struct by pattern-matching on the "status" key.