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

An Mnesia backed Ash Datalayer.

In your application intialization, you will need to call Mnesia.create_schema([node()]).

Additionally, you will want to create your mnesia tables there.

This data layer is extremely unoptimized, fetching all records from a table and filtering them in memory. This is primarily used for testing the behavior of data layers in Ash. If it was improved, it could be a viable data layer.

dsl-documentation

DSL Documentation

index

Index

docs

Docs

mnesia

mnesia

A section for configuring the mnesia data layer

Examples:

mnesia do
  table :custom_table
end

  • :table - The table name to use, defaults to the name of the resource

Link to this section Summary

Functions

Creates the table for each mnesia resource in an api

Link to this section Functions

Link to this function

start(api, resources \\ [])

View Source

Creates the table for each mnesia resource in an api

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

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