An ETS (Erlang Term Storage) backed Ash Datalayer, for testing and lightweight usage.
Remember, this has no support for transactions unless the resource names a
transaction_group in its ets section. This is not recommended for production use,
especially in multi-user applications. It can, however, be great for prototyping.
Summary
Functions
Stops the storage for a given resource/tenant (deleting all of the data).
Functions
Stops the storage for a given resource/tenant (deleting all of the data).
For a resource in a transaction group, the table is deleted once the transactions of other
processes holding any of its locks have ended, and writes asking for it meanwhile wait until
it is gone. The wait lasts as long as those transactions run, unless :timeout bounds it.
Returns :ok, or raises: past the timeout, naming the processes whose transactions hold the
table, and when one of those transactions waits, through the transactions it waits for, on
one the caller has open, since the wait would never end.
Options
:timeout(timeout/0) - How long, in milliseconds, to wait for the transactions holding the table. The default value is:infinity.