Skip to content

Task for students during training for employment at the Institute of Network Technologies

License

Notifications You must be signed in to change notification settings

anton0afanasiev0v/db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

db

An OTP application

Build

$ rebar3 compile

Build with tests

$ rebar3 as test compile
$ rebar3 as test shell
$ eunit:test([{application, calculator}]).

Run tests

$ rebar3 compile
$ rebar3 eunit

Task

  • Написать распределенную БД
db:new() -> Pid.
db:destroy(Pid) -> ok.
db:write(Key, Element, Pid) -> ok.
db:delete(Key, Pid) -> ok.
db:read(Key, Pid) -> {ok, Element} | {error, Reason}.
db:match(Element, Pid) -> [Keyl, ..., KeyN].
  • В качестве хранения можно использовать всё, что угодно
  • Имплементация через gen_server/supervisor/application

About

Task for students during training for employment at the Institute of Network Technologies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages