View Source Ash.DataLayer.Ets (ash v2.0.0-rc.13)

An ETS (Erlang Term Storage) backed Ash Datalayer, for testing.

This is used for testing. Do not use this data layer in production

dsl-documentation

DSL Documentation

index

Index

docs

Docs

ets

ets

A section for configuring the ets data layer

Examples:

ets do
  # Used in testing
  private? true
end

  • :private? - Sets the ets table protection to private The default value is false.

  • :table - The name of the table. Defaults to the resource name.

Link to this section Summary

Functions

Stops the storage for a given resource/tenant (deleting all of the data)

Link to this section Functions

This function is deprecated. use Ash.DataLayer.Ets.Info.private?/1 instead.

See Ash.DataLayer.Ets.Info.private?/1.

Link to this function

stop(resource, tenant \\ nil)

View Source

Stops the storage for a given resource/tenant (deleting all of the data)

This function is deprecated. use Ash.DataLayer.Ets.Info.table/1 instead.

See Ash.DataLayer.Ets.Info.table/1.