API Reference ActiveMemory v0.2.2

modules

Modules

Bring the power of in memory storage with ETS and Mnesia to your Elixir application.

Migrations will get run on app startup and are designed to modify :mnesia's schema.

the-match-query-syntax

The match query syntax

Using the match macro you can structure a basic query.

The Store

store-api

Store API

  • Store.all/0 Get all records stored
  • Store.delete/1 Delete the record provided
  • Store.delete_all/0 Delete all records stored
  • Store.one/1 Get one record matching either an attributes search or match query
  • Store.select/1 Get all records matching either an attributes search or match query
  • Store.withdraw/1 Get one record matching either an attributes search or match query, delete the record and return it
  • Store.write/1 Write a record into the memmory table

seeding

Seeding

When starting a Store there is an option to provide a valid seed file and have the Store auto load seeds contained in the file.

Define your table attributes and options.