{"id":20803587,"url":"https://github.com/afiskon/hurmadb","last_synced_at":"2025-05-07T02:41:27.003Z","repository":{"id":45936406,"uuid":"91082162","full_name":"afiskon/hurmadb","owner":"afiskon","description":"HurmaDB","archived":false,"fork":false,"pushed_at":"2022-12-08T13:03:50.000Z","size":145,"stargazers_count":16,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T05:31:48.972Z","etag":null,"topics":["database","json","lsm-tree","nosql","rest-api","rocksdb"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/afiskon.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":"2017-05-12T10:53:22.000Z","updated_at":"2024-07-10T08:01:45.000Z","dependencies_parsed_at":"2023-01-25T13:16:30.453Z","dependency_job_id":null,"html_url":"https://github.com/afiskon/hurmadb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afiskon%2Fhurmadb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afiskon%2Fhurmadb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afiskon%2Fhurmadb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afiskon%2Fhurmadb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afiskon","download_url":"https://codeload.github.com/afiskon/hurmadb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252802498,"owners_count":21806516,"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":["database","json","lsm-tree","nosql","rest-api","rocksdb"],"created_at":"2024-11-17T18:53:44.333Z","updated_at":"2025-05-07T02:41:26.945Z","avatar_url":"https://github.com/afiskon.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HurmaDB\n\nHurmaDB is a key-value storage with REST interface based on RocksDB. It was originally created in 2017 as a DBMS for educational purposes. Currently, this is a just-for-fun project.\n\n# How to build, test and run\n\nInstall all dependencies:\n\n```\nsudo apt install cmake g++ libpcre3-dev librocksdb-dev python3-pip \\\n  lcov doxygen clang-format\n```\n\nInstall and configure virtualenvwrapper:\n\n```\nsudo pip3 install virtualenv virtualenvwrapper\necho 'export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3' \u003e\u003e ~/.bashrc\necho 'source /usr/local/bin/virtualenvwrapper.sh' \u003e\u003e ~/.bashrc\nbash\n```\n\nCreate a virtualenv:\n\n```\nmkvirtualenv hurmadb\nworkon hurmadb\n```\n\nInstall all Python dependencies into the virtualenv:\n\n```\npip install -r requirements.txt\n```\n\nBuild HurmaDB:\n\n```\ngit clone https://github.com/afiskon/hurmadb.git\ncd hurmadb\ngit submodule init\ngit submodule update\nmkdir build\ncd build\ncmake ..\nmake -j2\n```\n\nBuild the documentation:\n\n```\ndoxygen\nfirefox doxygen/html/index.html\n```\n\nRun tests:\n\n```\nmake test\n```\n\nRun a benchmark:\n\n```\n./hurmadb -h 8080\ncurl -XPUT -d '{\"Some\":\"RandomData123\"}' localhost:8080/v1/kv/123 -D - -o -\nwrk -t10 -c10 -d10s http://localhost:8080/v1/kv/123\n```\n\nRun under Valgrind:\n\n```\nvalgrind ./hurmadb -h 8080\n\nworkon hurmadb\nHURMADB_HTTP_PORT=8080 make test\ncurl -XPUT http://localhost:8080/v1/_stop\n\n# make sure the result is something like:\n\n...\n==14339== LEAK SUMMARY:\n==14339==    definitely lost: 0 bytes in 0 blocks\n==14339==    indirectly lost: 0 bytes in 0 blocks\n==14339==      possibly lost: 0 bytes in 0 blocks\n==14339==    still reachable: 739 bytes in 8 blocks \u003c--- C++ runtime, ignore!\n==14339==         suppressed: 0 bytes in 0 blocks\n==14339== Rerun with --leak-check=full to see details of leaked memory\n==14339==\n==14339== For counts of detected and suppressed errors, rerun with: -v\n==14339== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)\n```\n\nRun a static analysis:\n\n```\ncppcheck ./src\ncd build-clang\nscan-build -o ./report make\n```\n\nCreate a code coverage report:\n\n```\n./code-coverage.sh\n```\n\n# API\nThe HurmaDB API is described [here](API.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafiskon%2Fhurmadb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafiskon%2Fhurmadb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafiskon%2Fhurmadb/lists"}