{"id":26361399,"url":"https://github.com/92181/hashdb","last_synced_at":"2025-10-13T23:23:37.335Z","repository":{"id":255852608,"uuid":"853546735","full_name":"92181/hashdb","owner":"92181","description":"A tiny one dimensional database, written in plain C.","archived":false,"fork":false,"pushed_at":"2025-07-18T19:52:08.000Z","size":44,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T00:20:56.516Z","etag":null,"topics":["c","cpp","database","hashmap","xxhash"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/92181.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-09-06T22:03:20.000Z","updated_at":"2025-07-18T19:52:11.000Z","dependencies_parsed_at":"2025-03-16T17:37:38.519Z","dependency_job_id":"9ad134a1-6c07-48ab-8bf4-e20c71c0b8a5","html_url":"https://github.com/92181/hashdb","commit_stats":null,"previous_names":["92181/hashdb"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/92181/hashdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/92181%2Fhashdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/92181%2Fhashdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/92181%2Fhashdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/92181%2Fhashdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/92181","download_url":"https://codeload.github.com/92181/hashdb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/92181%2Fhashdb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017243,"owners_count":26086015,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["c","cpp","database","hashmap","xxhash"],"created_at":"2025-03-16T17:37:28.921Z","updated_at":"2025-10-13T23:23:37.329Z","avatar_url":"https://github.com/92181.png","language":"C","readme":"# Tiny Key-Value Database\nA tiny key-value store database written in plain C, I decided to write this to understand the inner-workings of databases further and familiarize myself with different hashing algoritms such as SHA256 and xxHash.\nThe library is consists of a single C header file which can be easily included in any C or C++ project.\n\nThis hash based 'database' is thus fully embeddable and modular. Various use cases are shown such as...\n* Basic usage example, insert, retrieve and delete entries with their respondings keys.\n* A disk write mode (MMAP), which allows you to store memory pages on the disk.\n* Database context switching, between multiple active DB's.\n\n# Usage\nThis is a basic example on how to use the small library correctly.\n\n```c\n// Create Context;\nhdb j;dbc(\u0026j,128,1024);\n\n// Insert Key And Corresponding Value;\ndbi(\u0026j,\"Math\",\"The hashmap.\",5,12);\n\n// Remove The Entry By The Supplied Key;\ndbd(\"Math\",5);\n\n// Retrieve Values Stored In Array By Key;\nchar *y,*r;y=dbg(\u0026j,\"Math\",5,\u0026r);ptr(y,r);\n\n// Destroy Context;\ndis(\u0026j);\n```\n\n# License \u0026 Attribution\nIt uses an custom implemention of the xxHash hashing algorithm created by Yann Collet (BSD 2-Clause License).\n\nThis project uses the MIT Attribution license. If you like this project consider starring it.\n\nMade By Wolf Pieter Schulz.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F92181%2Fhashdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F92181%2Fhashdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F92181%2Fhashdb/lists"}