domhaobaobao / dump

a very simple database that holds binaries of equal length.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

a very simple database that holds binaries of equal length.


Languages

Language:Erlang 92.9%Language:Shell 7.1%