stored v0.0.1 Stored.Backend behaviour

Link to this section Summary

Link to this section Types

Link to this type

key()

key() :: term()
Link to this type

table_name()

table_name() :: atom()

Link to this section Callbacks

Link to this callback

all(table_name)

all(table_name()) :: [struct()]
Link to this callback

create(table_name)

create(table_name()) :: :ok
Link to this callback

upsert(struct, table_name)

upsert(struct(), table_name()) :: {:ok, {key(), struct()}}