{"id":18881395,"url":"https://github.com/leo-project/leo_backend_db","last_synced_at":"2025-04-14T20:10:16.019Z","repository":{"id":3516101,"uuid":"4574233","full_name":"leo-project/leo_backend_db","owner":"leo-project","description":"leo_backend_db is a wrapper library for Basho bitcask, Basho eleveldb and Erlang ETS. They are used as local KVS in LeoFS.","archived":false,"fork":false,"pushed_at":"2020-05-31T05:21:55.000Z","size":1515,"stargazers_count":10,"open_issues_count":1,"forks_count":8,"subscribers_count":4,"default_branch":"v2","last_synced_at":"2025-03-28T08:23:08.325Z","etag":null,"topics":["erlang","kvs","leofs","library"],"latest_commit_sha":null,"homepage":"http://leo-project.net/leofs","language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leo-project.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-06T15:23:53.000Z","updated_at":"2023-05-23T05:21:20.000Z","dependencies_parsed_at":"2022-08-29T11:41:00.891Z","dependency_job_id":null,"html_url":"https://github.com/leo-project/leo_backend_db","commit_stats":null,"previous_names":[],"tags_count":96,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leo-project%2Fleo_backend_db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leo-project%2Fleo_backend_db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leo-project%2Fleo_backend_db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leo-project%2Fleo_backend_db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leo-project","download_url":"https://codeload.github.com/leo-project/leo_backend_db/tar.gz/refs/heads/v2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248952350,"owners_count":21188426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["erlang","kvs","leofs","library"],"created_at":"2024-11-08T06:49:15.756Z","updated_at":"2025-04-14T20:10:15.997Z","avatar_url":"https://github.com/leo-project.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"leo_backend_db\n==============\n\n[![Build Status](https://secure.travis-ci.org/leo-project/leo_backend_db.png?branch=v2)](http://travis-ci.org/leo-project/leo_backend_db)\n\n* **leo_backend_db** is wrapper of local KVS and uses Basho bitcask, Basho eleveldb and Erlang ETS.\n  * [bitcask](https://github.com/basho/bitcask)\n  * [eleveldb](https://github.com/basho/eleveldb)\n  * [Erlang ETS](http://www.erlang.org/doc/man/ets.html)\n\n## Build Information\n\n* **leo_backend_db** uses [rebar](https://github.com/basho/rebar) build system. Makefile so that simply running \"make\" at the top level should work.\n* **leo_backend_db** requires Erlang/OTP 19.3 or later.\n\n## Usage\n\n```\n$ git clone git@github.com:leo-project/leo_backend_db.git\n$ cd leo_backend_db\n$ make\n$ mkdir test_db\n$ erl -pa ebin deps/*/ebin\nErlang/OTP 21 [erts-10.3] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [hipe]\n\nEshell V10.3  (abort with ^G)\n1\u003e leo_backend_db_api:new(test_leveldb, 2, leveldb, \"test_db\").\nok\n2\u003e leo_backend_db_api:put(test_leveldb, \u003c\u003c\"key1\"\u003e\u003e, \u003c\u003c\"val1\"\u003e\u003e).\nok\n3\u003e leo_backend_db_api:get(test_leveldb, \u003c\u003c\"key1\"\u003e\u003e).\n{ok,\u003c\u003c\"val1\"\u003e\u003e}\n4\u003e leo_backend_db_api:stop(test_leveldb).\n...\n```\n\n## Usage in LeoFS\n\n**leo_backend_db** is used in [leo_object_storage](https://github.com/leo-project/leo_object_storage) and [leo_mq](https://github.com/leo-project/leo_mq).\n\n### [leo_object_storage](https://github.com/leo-project/leo_object_storage)\n\n**leo_backend_db** works to handle the backend database of LeoFS. It manages the stored objects in LeoFS.\n\n### [leo_mq](https://github.com/leo-project/leo_mq)\n\n**backend_db** is also used to manage message queue among the LeoFS storage nodes.\n\n## Lincense\n\nleo_backend_db's license is \"Apache License Version 2.0\".\n\n## Sponsors\n\n* LeoProject/LeoFS was sponsored by [Rakuten, Inc.](http://global.rakuten.com/corp/) from 2012 to Dec of 2018.\n* LeoProject/LeoFS is sponsored by [Lions Data, Ltd](https://lions-data.com/) from Jan of 2019.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleo-project%2Fleo_backend_db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleo-project%2Fleo_backend_db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleo-project%2Fleo_backend_db/lists"}