Skip to content

lfex/moneta-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LFE Moneta Tutorial

Introduction

This repo holds the source code for the LFE Mnesia Tutorial available here.

Dependencies

This project assumes that you have rebar installed somwhere in your $PATH.

This project depends upon the following, which installed to the deps directory of this project when you run make deps:

  • LFE (Lisp Flavored Erlang; needed only to compile)
  • lfeunit (needed only to run the unit tests)

Download

Get the code from github and compile it:

$ git clone [email protected]:oubiwann/mnesia-tutorial.git
$ cd mnesia-tutorial
$ make get-deps
$ make compile

Walk-Through

Start the REPL:

$ DB=./Company.DB make mnesia-shell
> (mnesia:create_schema (list (node)))
ok
> (mnesia:start)
ok
> (slurp '"src/structure.lfe")
#(ok structure)
> (init)
(#(create-set-tables (#(atomic ok) #(atomic ok) #(atomic ok) #(atomic ok)))
 #(create-bag-tables (#(atomic ok) #(atomic ok))))
>

Actually, I take it back -- no walk-through.

Go read the tutorial!

About

The LFE Mnesia Tutorial Adapted for Moneta

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published