{"id":38837389,"url":"https://github.com/kylewolfe/rumble","last_synced_at":"2026-01-17T13:57:08.879Z","repository":{"id":57603425,"uuid":"51964157","full_name":"kylewolfe/rumble","owner":"kylewolfe","description":"[WIP] key/document store (BoltDB abstraction) with an API similar to gopkg.in/mgo.v2","archived":false,"fork":false,"pushed_at":"2017-01-28T15:59:25.000Z","size":15,"stargazers_count":7,"open_issues_count":5,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-20T18:36:20.655Z","etag":null,"topics":["boltdb","embedded-database","mgo"],"latest_commit_sha":null,"homepage":"","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/kylewolfe.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":"2016-02-17T23:44:00.000Z","updated_at":"2019-01-28T15:56:29.000Z","dependencies_parsed_at":"2022-09-26T22:30:16.826Z","dependency_job_id":null,"html_url":"https://github.com/kylewolfe/rumble","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kylewolfe/rumble","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kylewolfe%2Frumble","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kylewolfe%2Frumble/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kylewolfe%2Frumble/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kylewolfe%2Frumble/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kylewolfe","download_url":"https://codeload.github.com/kylewolfe/rumble/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kylewolfe%2Frumble/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28509669,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: 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":["boltdb","embedded-database","mgo"],"created_at":"2026-01-17T13:57:08.167Z","updated_at":"2026-01-17T13:57:08.871Z","avatar_url":"https://github.com/kylewolfe.png","language":"Go","readme":"rumble [![GoDoc](http://godoc.org/github.com/kylewolfe/rumble?status.svg)](http://godoc.org/github.com/kylewolfe/rumble) [![Build Status](https://travis-ci.org/kylewolfe/rumble.svg?branch=master)](https://travis-ci.org/kylewolfe/rumble) [![Coverage Status](https://coveralls.io/repos/kylewolfe/rumble/badge.svg)](https://coveralls.io/r/kylewolfe/rumble) \n======\n\nRumbleDB is an abstraction for boltdb that aims to provide a clean API similiar to that of gopkg.in/mgo.v2 without hiding boltdb away from you completely and without locking you in to a\nspecefic encoding.\n\n## Why?\n\nThe mgo API is awesome, and so is boltdb.\n\n## Install\n\nRumbleDB will follow the gopkg.in repository scheme. **Rumble is currently unstable.**\n\n```\ngo get -u gopkg.in/kylewolfe/rumble.v0\n```\n\n## RumbleDB Out of the Box\n\n```go\nvar db *rumble.DB\nvar err error\n   \nif db, err = rumble.New(\"test.db\"); err != nil {\n\tpanic(err)\n}\n       \n// structs\nbucket := db.Bucket(\"foo\")\nfor i := 0; i \u003c 3; i++ {\n\tfoo := \u0026struct {\n\t\tId    bson.ObjectId `rumble:\"key\"`\n\t\tFizz  string\n\t\tCount int\n\t}{\n\t\tFizz:  \"buzz\",\n\t\tCount: i,\n\t}\n\tif err = bucket.Put(foo); err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Printf(\"newly created id: %s\\n\", foo.Id.Hex()) // ids generated on the fly like mgo\n}\n\n// iteration\ni := bucket.NewIter()\nfoo := \u0026struct {\n\tId    bson.ObjectId `rumble:\"key\"`\n\tFizz  string\n\tCount int\n}{}\nfor i.Next(foo) {\n\tfmt.Printf(\"created: %s\\n\", foo.Id.Time())\n}\n\n// maps\nbucket = db.Bucket(\"bar\")\nm := bson.M{\"foo\": \"bar\"}\nif err = bucket.Put(m); err != nil {\n\tpanic(err)\n}\nfmt.Println(m)\n\n// newly created id: 56c4ffb89e56a73ced4227d6\n// newly created id: 56c4ffb89e56a73ced4227d7\n// newly created id: 56c4ffb89e56a73ced4227d8\n// created: 2016-02-17 18:18:16 -0500 EST\n// created: 2016-02-17 18:18:16 -0500 EST\n// created: 2016-02-17 18:18:16 -0500 EST\n// map[_key:[86 196 255 185 158 86 167 60 237 66 39 217] foo:bar]\n```\n\n## Bring Your Own Encoding\n\nRumbleDB provides encoding functionality from bson out of the box, but you can use whatever you'd like.\n\n```go\ndb, _ := rumble.New(\"my.db\")\ndb.Marshal = json.Marshal\ndb.Unmarshal = json.Unmarshal\n```\n\nYou can also use your own ID format\n\n```go\nvar i uint32 = 0\ndb.NewId = func() []byte {\n\treturn []byte(i := atomic.AddUint32(\u0026rowCounter, 1))\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkylewolfe%2Frumble","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkylewolfe%2Frumble","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkylewolfe%2Frumble/lists"}