From 236238cebed66c732abd760e2f9f6ef7e709ef96 Mon Sep 17 00:00:00 2001 From: Viet Hung Nguyen Date: Thu, 15 Jun 2017 17:31:28 +0700 Subject: [PATCH] Update detail on where to put database module A little guide to make it more newbie-friendly. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index df341e4..d277d8f 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,9 @@ To use amnesia you have to define a database and the tables of that database. You can have multiple databases in the same amnesia instance, a database is actually just a way to group *mnesia* tables. +Let's create a module contains below code under `/lib` directory, +the filename does not matter like any Elixir module, e.g: `Database.ex` + ```elixir # needed to get defdatabase and other macros use Amnesia