#
View Source Ash.DataLayer.Ets (ash v2.14.2)

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

Remember, this does not have support for transactions! This is not recommended for production use, especially in multi-user applications. It can, however, be great for prototyping.

##

dsl-documentation

DSL Documentation

###

index

Index

- ets

###

docs

Docs

##

ets

ets

A section for configuring the ets data layer

Examples:

    ets do
      # Used in testing
      private? true
    end

- `:private?` (`boolean/0`) - Sets the ets table protection to private, and scopes it to only this process. The table name will not be used directly if this is true, to allow multiple processes to use this resource separately. The default value is `false`.

- `:table` (`atom/0`) - The name of the table. Defaults to the resource name.

# Link to this section Summary

## Functions

do_add_calculations(records, resource, calculations, api)
private?(resource) deprecated

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

stop(resource, tenant \\ nil)

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

table(resource) deprecated

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

# Link to this section Functions

Link to this function

# do_add_calculations(records, resource, calculations, api)

View Source
Link to this function

# private?(resource)

View Source
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)

Link to this function

# table(resource)

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

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