/dump

a very simple database that holds binaries of equal length.

Primary LanguageErlang

Dump

This is a very simple harddrive database. It only stores one size of block. here is an example of using it.

1> ID = database003,
2> dump_sup:start_link(ID, 5, 10000, ram).
{ok,<0.37.0>}
3> V = <<3,2,1,5,6>>.
<<3,2,1,5,6>>
4> Location = dump:put(V, ID).
15992
5> V = dump:get(Location, ID).
<<3,2,1,5,6>>
6>

it uses the atom database003 so that you can start more than one dump, and give them different names.