{"id":20961397,"url":"https://github.com/perbu/gokvstore","last_synced_at":"2026-04-20T21:37:21.914Z","repository":{"id":143067682,"uuid":"606699264","full_name":"perbu/gokvstore","owner":"perbu","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-27T07:54:03.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-31T11:27:19.490Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/perbu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-02-26T09:45:30.000Z","updated_at":"2023-02-26T09:45:39.000Z","dependencies_parsed_at":"2023-04-27T16:47:30.667Z","dependency_job_id":null,"html_url":"https://github.com/perbu/gokvstore","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/perbu/gokvstore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fgokvstore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fgokvstore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fgokvstore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fgokvstore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perbu","download_url":"https://codeload.github.com/perbu/gokvstore/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fgokvstore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32067622,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T21:26:33.338Z","status":"ssl_error","status_checked_at":"2026-04-20T21:26:22.081Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-19T02:03:49.464Z","updated_at":"2026-04-20T21:37:21.900Z","avatar_url":"https://github.com/perbu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gokvstore\n\n\n## What is it?\n\nToy implementation of a key-value store in Go. It's a learning exercise for me to get more familiar file IO.\n\n## How to use it?\n\nNew(dbName, walName) will instantiate a new KVStore. dbName is the name of the database file, \nand walName is the name of the write-ahead log file. The database file is a binary file that \nstores the key-value pairs. The write-ahead log file is a binary file that stores the operations\nthat have been performed on the database. The database file and the write-ahead log file are both\ncreated if they don't exist.\n\nIf they do exist, the data from the files are loaded into memory. The write-ahead log file is \nthen replayed.\n\nThese are the operations available on a KVStore:\n - Flush() - flushes the write-ahead log file to disk.\n - Coalesce() - coalesces the write-ahead log file and stores the data in the database file.\n - Get(key) - returns the value associated with the key\n - Set(key, value) - sets the value associated with the key\n - Delete(key) - deletes the key-value pair associated with the key\n - Close() - closes the database file and the write-ahead log file\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperbu%2Fgokvstore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperbu%2Fgokvstore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperbu%2Fgokvstore/lists"}