View Source AshCubDB.Serde (ash_cubdb v0.6.2)

Handle serialising and deserialising of records into CubDB.

Summary

Functions

Convert the key and data back into a record..

Serialise the record into key and value tuples for storage in CubDB.

Functions

Link to this function

deserialise(resource, key, data)

View Source
@spec deserialise(Ash.Resource.t(), tuple(), tuple()) ::
  {:ok, Ash.Resource.record()} | {:error, any()}

Convert the key and data back into a record..

@spec serialise(Ash.Resource.record()) :: {:ok, tuple(), tuple()} | {:error, any()}

Serialise the record into key and value tuples for storage in CubDB.