{"id":15567627,"url":"https://github.com/purehyperbole/lunar","last_synced_at":"2025-04-24T00:04:05.392Z","repository":{"id":41371482,"uuid":"127132371","full_name":"purehyperbole/lunar","owner":"purehyperbole","description":"Embedded go database","archived":false,"fork":false,"pushed_at":"2022-09-22T20:30:05.000Z","size":78,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-24T00:03:58.957Z","etag":null,"topics":["database","embedded","golang","mmap","persistence","radix"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/purehyperbole.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":"2018-03-28T11:49:26.000Z","updated_at":"2024-01-15T08:30:51.000Z","dependencies_parsed_at":"2022-07-30T07:37:57.430Z","dependency_job_id":null,"html_url":"https://github.com/purehyperbole/lunar","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/purehyperbole%2Flunar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purehyperbole%2Flunar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purehyperbole%2Flunar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purehyperbole%2Flunar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purehyperbole","download_url":"https://codeload.github.com/purehyperbole/lunar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250535098,"owners_count":21446508,"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","embedded","golang","mmap","persistence","radix"],"created_at":"2024-10-02T17:12:04.918Z","updated_at":"2025-04-24T00:04:05.372Z","avatar_url":"https://github.com/purehyperbole.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LunarDB [![GoDoc](https://godoc.org/github.com/purehyperbole/lunar?status.svg)](https://godoc.org/github.com/purehyperbole/lunar) [![Go Report Card](https://goreportcard.com/badge/github.com/purehyperbole/lunar)](https://goreportcard.com/report/github.com/purehyperbole/lunar) [![Build Status](https://travis-ci.org/purehyperbole/lunar.svg?branch=master)](https://travis-ci.org/purehyperbole/lunar)\n\nA simple embedded, persistent key value store for go.\n\nThe index makes use of a lock free radix tree, which is kept only in memory.\n\nData persistence is handled via a memory mapped file (MMAP).\n\n# Motivation\n\nThis project was built for fun and learning. It probably has lots of bugs and shouldn't be used for any real workloads (yet!) \n\n# Installation\n\nTo start using lunar, you can run:\n\n`$ go get github.com/purehyperbole/lunar`\n\n# Usage\n\n`Open` will open a database file. This will create a data and accompanying index file if the specified file(s) don't exist.\n\n```go\npackage main\n\nimport (\n    \"github.com/purehyperbole/lunar\"\n)\n\nfunc main() {\n    // open a new or existing database file.\n    db, err := lunar.Open(\"test.db\")\n    if err != nil {\n        panic(err)\n    }\n\n    defer db.Close()\n}\n```\n\n`Get` allows data to be retrieved.\n\n```go\ndata, err := db.Get([]byte(\"myKey1234\"))\n```\n\n`Set` allows data to be stored.\n\n```go\nerr := db.Set([]byte(\"myKey1234\"), []byte(`{\"status\": \"ok\"}`))\n```\n\n# Features/Wishlist\n\n- [x] Persistence\n- [x] Lock free index (Radix)\n- [ ] Data file compaction\n- [ ] Configurable sync on write options\n- [ ] Transactions (MVCC)\n\n## Versioning\n\nFor transparency into our release cycle and in striving to maintain backward\ncompatibility, this project is maintained under [the Semantic Versioning guidelines](http://semver.org/).\n\n## Copyright and License\n\nCode and documentation copyright since 2018 purehyperbole.\n\nCode released under\n[the MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurehyperbole%2Flunar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurehyperbole%2Flunar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurehyperbole%2Flunar/lists"}