#
View Source Ash.DataLayer.Mnesia (ash v2.6.31)

An Mnesia backed Ash Datalayer.

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

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

This data layer is unoptimized, fetching all records from a table and filtering them in memory. For that reason, it is not recommended to use it with large amounts of data. It can be great for prototyping or light usage, though.

##

dsl-documentation

DSL Documentation

###

index

Index

- mnesia

###

docs

Docs

##

mnesia

mnesia

A section for configuring the mnesia data layer

Examples:

    mnesia do
      table :custom_table
    end

- `:table` (`atom/0`) - The table name to use, defaults to the name of the resource

# Link to this section Summary

## Functions

start(api, resources \\ [])

Creates the table for each mnesia resource in an api

table(resource) deprecated

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

# Link to this section Functions

Link to this function

# start(api, resources \\ [])

View Source

Creates the table for each mnesia resource in an api

Link to this function

# table(resource)

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

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