API Reference ActiveMemory v0.1.1

modules

Modules

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

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 defaults just like a regular Elixir module struct. Keys can have default values defined.